mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
implement util_yOffsetChange; increase pen timer to half second.
This commit is contained in:
parent
72ee1032c0
commit
6a83cc94f4
1 changed files with 9 additions and 4 deletions
|
@ -1117,10 +1117,13 @@ gtk_util_trayHiddenChange( XW_UtilCtxt* uc, XW_TrayVisState XP_UNUSED(state),
|
|||
} /* gtk_util_trayHiddenChange */
|
||||
|
||||
static void
|
||||
gtk_util_yOffsetChange( XW_UtilCtxt* XP_UNUSED(uc),
|
||||
XP_U16 XP_UNUSED(oldOffset),
|
||||
XP_U16 XP_UNUSED(newOffset) )
|
||||
gtk_util_yOffsetChange( XW_UtilCtxt* uc, XP_U16 XP_UNUSED(oldOffset),
|
||||
XP_U16 newOffset )
|
||||
{
|
||||
GtkAppGlobals* globals = (GtkAppGlobals*)uc->closure;
|
||||
XP_ASSERT( globals->cGlobals.params->nHidden > 0 );
|
||||
globals->adjustment->value = newOffset;
|
||||
gtk_adjustment_value_changed( GTK_ADJUSTMENT(globals->adjustment) );
|
||||
} /* gtk_util_yOffsetChange */
|
||||
|
||||
static void
|
||||
|
@ -1258,11 +1261,13 @@ gtk_util_setTimer( XW_UtilCtxt* uc, XWTimerReason why,
|
|||
cancelTimer( globals, why );
|
||||
|
||||
if ( why == TIMER_PENDOWN ) {
|
||||
globals->penTimerInterval = 35 * 10000;
|
||||
/* half a second */
|
||||
globals->penTimerInterval = 50 * 10000;
|
||||
|
||||
(void)gettimeofday( &globals->penTv, NULL );
|
||||
newSrc = g_idle_add( pentimer_idle_func, globals );
|
||||
} else if ( why == TIMER_TIMERTICK ) {
|
||||
/* one second */
|
||||
globals->scoreTimerInterval = 100 * 10000;
|
||||
|
||||
(void)gettimeofday( &globals->scoreTv, NULL );
|
||||
|
|
Loading…
Reference in a new issue