From e57e595d99df58db63dcf72d5e7dce50b942259f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 6 Nov 2024 12:45:23 +0100 Subject: [PATCH] make it compile with gtk+-3.0 --- src/x49gpng/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x49gpng/ui.c b/src/x49gpng/ui.c index a632148..c4eb24d 100644 --- a/src/x49gpng/ui.c +++ b/src/x49gpng/ui.c @@ -1459,7 +1459,7 @@ static gboolean react_to_key_event( GtkWidget* widget, GdkEventKey* event, gpoin case GDK_KEY_period: case GDK_KEY_comma: case GDK_KEY_KP_Decimal: - case GDK_KP_Separator: + case GDK_KEY_KP_Separator: index = 48; break; case GDK_KEY_space: @@ -1949,7 +1949,7 @@ static int ui_load( x49gp_module_t* module, GKeyFile* keyfile ) button->button = gtk_button_new(); 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 );