summaryrefslogtreecommitdiff
path: root/cut-n-paste/zoom-control/ephy-zoom-control.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-04 13:01:21 +0100
committerraveit65 <[email protected]>2017-03-06 16:10:06 +0100
commit4ace2687fc30d53a673d3b1a454285b91f72fb00 (patch)
treea1d54371f1629fb8d94b18cb21ae99f884046f8b /cut-n-paste/zoom-control/ephy-zoom-control.c
parent32ae49f81c05e676a86544e66b09f65f83b9db37 (diff)
downloadatril-4ace2687fc30d53a673d3b1a454285b91f72fb00.tar.bz2
atril-4ace2687fc30d53a673d3b1a454285b91f72fb00.tar.xz
zoom-control.c: don't use deprecated gtk_combo_box_set_focus_on_click
replace it with gtk_widget_set_focus_on_click
Diffstat (limited to 'cut-n-paste/zoom-control/ephy-zoom-control.c')
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c
index a581e878..27a1e31a 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-control.c
+++ b/cut-n-paste/zoom-control/ephy-zoom-control.c
@@ -193,7 +193,11 @@ ephy_zoom_control_init (EphyZoomControl *control)
(GtkTreeViewRowSeparatorFunc) row_is_separator,
NULL, NULL);
+#if GTK_CHECK_VERSION(3,20,0)
+ gtk_widget_set_focus_on_click (GTK_WIDGET (p->combo), FALSE);
+#else
gtk_combo_box_set_focus_on_click (p->combo, FALSE);
+#endif
g_object_ref_sink (G_OBJECT (p->combo));
gtk_widget_show (GTK_WIDGET (p->combo));