diff options
author | raveit65 <[email protected]> | 2016-07-06 15:01:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-07-08 16:05:07 +0200 |
commit | b45ec539f95cba19409643725e17433e4efc7bf7 (patch) | |
tree | ba8f91db1a695cd473604fd2501966d22209146a /src/caja-view-as-action.c | |
parent | 3a17de48f2892643c7d27829c24418554b9fadbf (diff) | |
download | caja-b45ec539f95cba19409643725e17433e4efc7bf7.tar.bz2 caja-b45ec539f95cba19409643725e17433e4efc7bf7.tar.xz |
GTK+-3.20 view-as-action: avoid deprecated gtk_combo_box_set_focus_on_click
Diffstat (limited to 'src/caja-view-as-action.c')
-rw-r--r-- | src/caja-view-as-action.c | 4 |
1 files changed, 4 insertions, 0 deletions
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", |