[Xfce4-commits] [apps/xfce4-terminal] 01/01: Resolve deprecations of GDK functions

noreply at xfce.org noreply at xfce.org
Sun Feb 25 18:18:09 CET 2018


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 6b107c49472feb189b4bd062cd237ae068e88bb7
Author: Igor <f2404 at yandex.ru>
Date:   Sun Feb 25 12:18:03 2018 -0500

    Resolve deprecations of GDK functions
---
 terminal/terminal-util.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/terminal/terminal-util.c b/terminal/terminal-util.c
index 53980b7..9a5d315 100644
--- a/terminal/terminal-util.c
+++ b/terminal/terminal-util.c
@@ -127,15 +127,15 @@ terminal_util_activate_window (GtkWindow *window)
   event.data.l[1] = timestamp;
   event.data.l[2] = event.data.l[3] = event.data.l[4] = 0;
 
-  gdk_error_trap_push ();
+  gdk_x11_display_error_trap_push (gdk_window_get_display (gdk_window));
 
   XSendEvent (gdk_x11_get_default_xdisplay (),
               gdk_x11_get_default_root_xwindow (), False,
               StructureNotifyMask, (XEvent *) &event);
 
-  gdk_flush ();
+  gdk_display_flush (gdk_window_get_display (gdk_window));
 
-  if (gdk_error_trap_pop () != 0)
+  if (gdk_x11_display_error_trap_pop (gdk_window_get_display (gdk_window)) != 0)
     g_critical ("Failed to focus window");
 #else
   /* our best guess on non-x11 clients */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list