forked from Miroirs/x49gp
make it compile with gtk+-3.0
This commit is contained in:
parent
4145b7af07
commit
e57e595d99
1 changed files with 2 additions and 2 deletions
|
@ -1459,7 +1459,7 @@ static gboolean react_to_key_event( GtkWidget* widget, GdkEventKey* event, gpoin
|
||||||
case GDK_KEY_period:
|
case GDK_KEY_period:
|
||||||
case GDK_KEY_comma:
|
case GDK_KEY_comma:
|
||||||
case GDK_KEY_KP_Decimal:
|
case GDK_KEY_KP_Decimal:
|
||||||
case GDK_KP_Separator:
|
case GDK_KEY_KP_Separator:
|
||||||
index = 48;
|
index = 48;
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_space:
|
case GDK_KEY_space:
|
||||||
|
@ -1949,7 +1949,7 @@ static int ui_load( x49gp_module_t* module, GKeyFile* keyfile )
|
||||||
|
|
||||||
button->button = gtk_button_new();
|
button->button = gtk_button_new();
|
||||||
gtk_widget_set_size_request( button->button, button->key->width, button->key->height );
|
gtk_widget_set_size_request( button->button, button->key->width, button->key->height );
|
||||||
gtk_widget_set( button->button, "can-focus", false, NULL );
|
gtk_widget_set_can_focus( button->button, false );
|
||||||
|
|
||||||
ui_load__style_button( ui, button );
|
ui_load__style_button( ui, button );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue