summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/caja-view-as-action.c4
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",