mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
use new XP_TriEnable type
This commit is contained in:
parent
b9cc093820
commit
a735cfab03
1 changed files with 6 additions and 6 deletions
|
@ -360,29 +360,29 @@ labelForCol( const GtkNewGameState* state, XP_U16 player, NewGameColumn col )
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_newgame_col_enable( void* closure, XP_U16 player, NewGameColumn col,
|
gtk_newgame_col_enable( void* closure, XP_U16 player, NewGameColumn col,
|
||||||
NewGameEnable enable )
|
XP_TriEnable enable )
|
||||||
{
|
{
|
||||||
GtkNewGameState* state = (GtkNewGameState*)closure;
|
GtkNewGameState* state = (GtkNewGameState*)closure;
|
||||||
GtkWidget* widget = widgetForCol( state, player, col );
|
GtkWidget* widget = widgetForCol( state, player, col );
|
||||||
GtkWidget* label = labelForCol( state, player, col );
|
GtkWidget* label = labelForCol( state, player, col );
|
||||||
|
|
||||||
if ( enable == NGEnableHidden ) {
|
if ( enable == TRI_ENAB_HIDDEN ) {
|
||||||
gtk_widget_hide( widget );
|
gtk_widget_hide( widget );
|
||||||
if ( !!label ) {
|
if ( !!label ) {
|
||||||
gtk_widget_hide( label );
|
gtk_widget_hide( label );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gtk_widget_show( widget );
|
gtk_widget_show( widget );
|
||||||
gtk_widget_set_sensitive( widget, enable == NGEnableEnabled );
|
gtk_widget_set_sensitive( widget, enable == TRI_ENAB_ENABLED );
|
||||||
if ( !!label ) {
|
if ( !!label ) {
|
||||||
gtk_widget_show( label );
|
gtk_widget_show( label );
|
||||||
gtk_widget_set_sensitive( label, enable == NGEnableEnabled );
|
gtk_widget_set_sensitive( label, enable == TRI_ENAB_ENABLED );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* gtk_newgame_col_enable */
|
} /* gtk_newgame_col_enable */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_newgame_attr_enable( void* closure, NewGameAttr attr, NewGameEnable enable )
|
gtk_newgame_attr_enable( void* closure, NewGameAttr attr, XP_TriEnable enable )
|
||||||
{
|
{
|
||||||
GtkNewGameState* state = (GtkNewGameState*)closure;
|
GtkNewGameState* state = (GtkNewGameState*)closure;
|
||||||
GtkWidget* widget = NULL;
|
GtkWidget* widget = NULL;
|
||||||
|
@ -395,7 +395,7 @@ gtk_newgame_attr_enable( void* closure, NewGameAttr attr, NewGameEnable enable )
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !!widget ) {
|
if ( !!widget ) {
|
||||||
gtk_widget_set_sensitive( widget, enable == NGEnableEnabled );
|
gtk_widget_set_sensitive( widget, enable == TRI_ENAB_ENABLED );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue