From b45ec539f95cba19409643725e17433e4efc7bf7 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 6 Jul 2016 15:01:08 +0200 Subject: GTK+-3.20 view-as-action: avoid deprecated gtk_combo_box_set_focus_on_click --- src/caja-view-as-action.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/caja-view-as-action.c b/src/caja-view-as-action.c index 9b61bd69..9325f607 100644 --- a/src/caja-view-as-action.c +++ b/src/caja-view-as-action.c @@ -184,7 +184,11 @@ connect_proxy (GtkAction *action, view_as_combo_box = gtk_combo_box_text_new (); +#if GTK_CHECK_VERSION(3,20,0) + gtk_widget_set_focus_on_click (view_as_combo_box, FALSE); +#else gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (view_as_combo_box), FALSE); +#endif gtk_box_pack_end (GTK_BOX (view_as_menu_vbox), view_as_combo_box, TRUE, FALSE, 0); gtk_widget_show (view_as_combo_box); g_signal_connect_object (view_as_combo_box, "changed", -- cgit v1.2.1