From 54f29cc024b44a23f9c8e94a79f18cd62ede2383 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 19 Dec 2021 10:29:25 +0200 Subject: [PATCH 45/45] gtk3x: Cast gtk_widget_get_display() parameter properly See osdn #43422 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/citydlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-gtk-4.0/citydlg.c b/client/gui-gtk-4.0/citydlg.c index e06a30ab64..fddd01a001 100644 --- a/client/gui-gtk-4.0/citydlg.c +++ b/client/gui-gtk-4.0/citydlg.c @@ -3235,7 +3235,7 @@ static void impr_callback(GtkTreeView *view, GtkTreePath *path, gtk_tree_model_get(model, &it, 0, &pimprove, -1); #ifdef GTKCOMPAT_GTK4_FINAL - seat = gdk_display_get_default_seat(gtk_widget_get_display(view)); + seat = gdk_display_get_default_seat(gtk_widget_get_display(GTK_WIDGET(view))); mask = gdk_device_get_modifier_state(gdk_seat_get_keyboard(seat)); #else mask = 0; -- 2.34.1