emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d309ce4: Remove use of a deprecated GTK+ function i


From: Philipp Stephani
Subject: [Emacs-diffs] master d309ce4: Remove use of a deprecated GTK+ function in new versions
Date: Sun, 27 Aug 2017 08:10:44 -0400 (EDT)

branch: master
commit d309ce429912a39c4f19877f23cf36116b679818
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    Remove use of a deprecated GTK+ function in new versions
    
    * src/gtkutil.c (xg_make_tool_item): Use gtk_widget_set_focus_on_click
    if available
---
 src/gtkutil.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index 2675cd5..7a110da 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -4617,7 +4617,11 @@ xg_make_tool_item (struct frame *f,
   if (wimage && text_image)
     gtk_box_pack_start (GTK_BOX (vb), wimage, TRUE, TRUE, 0);
 
+#if GTK_CHECK_VERSION (3, 20, 0)
+  gtk_widget_set_focus_on_click (wb, FALSE);
+#else
   gtk_button_set_focus_on_click (GTK_BUTTON (wb), FALSE);
+#endif
   gtk_button_set_relief (GTK_BUTTON (wb), GTK_RELIEF_NONE);
   gtk_container_add (GTK_CONTAINER (wb), vb);
   gtk_container_add (GTK_CONTAINER (weventbox), wb);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]