emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f02e76f: GTK+: stop calling 'gtk_window_set_wmclass


From: Philipp Stephani
Subject: [Emacs-diffs] master f02e76f: GTK+: stop calling 'gtk_window_set_wmclass' in new versions
Date: Sat, 23 Sep 2017 06:39:51 -0400 (EDT)

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

    GTK+: stop calling 'gtk_window_set_wmclass' in new versions
    
    * src/gtkutil.c (xg_create_frame_widgets): Stop calling deprecated
    function 'gtk_window_set_wmclass' in GTK+ 3.22.
---
 src/gtkutil.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index 03c404f..f3e89c8 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1227,9 +1227,11 @@ xg_create_frame_widgets (struct frame *f)
      a lot, so we turn off double buffering.  */
   gtk_widget_set_double_buffered (wfixed, FALSE);
 
+#if ! GTK_CHECK_VERSION (3, 22, 0)
   gtk_window_set_wmclass (GTK_WINDOW (wtop),
                           SSDATA (Vx_resource_name),
                           SSDATA (Vx_resource_class));
+#endif
 
   /* Add callback to do nothing on WM_DELETE_WINDOW.  The default in
      GTK is to destroy the widget.  We want Emacs to do that instead.  */



reply via email to

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