summaryrefslogtreecommitdiff
path: root/src/caja-notebook.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-31 23:43:52 +0200
committerraveit65 <[email protected]>2016-06-15 13:29:05 +0200
commita6267ed3da8b579247d3a786c91c3da3ed729c6b (patch)
treeb2b6811bf44451f3049c0d50760cd66efc3a19a2 /src/caja-notebook.c
parent0041a533fe63c8ccbe0881ab3fb9b3e9003d3ba6 (diff)
downloadcaja-a6267ed3da8b579247d3a786c91c3da3ed729c6b.tar.bz2
caja-a6267ed3da8b579247d3a786c91c3da3ed729c6b.tar.xz
GTK+-3.20: do not use deprecated gtk_button_set_focus_on_click
Diffstat (limited to 'src/caja-notebook.c')
-rw-r--r--src/caja-notebook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-notebook.c b/src/caja-notebook.c
index c281b7d0..ec2ec714 100644
--- a/src/caja-notebook.c
+++ b/src/caja-notebook.c
@@ -411,7 +411,11 @@ build_tab_label (CajaNotebook *nb, CajaWindowSlot *slot)
gtk_button_set_relief (GTK_BUTTON (close_button),
GTK_RELIEF_NONE);
/* don't allow focus on the close button */
+#if GTK_CHECK_VERSION(3,20,0)
+ gtk_widget_set_focus_on_click (close_button, FALSE);
+#else
gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
+#endif
gtk_widget_set_name (close_button, "caja-tab-close-button");