[Xfce4-commits] [panel-plugins/xfce4-time-out-plugin] 10/15: Replace deprecated x11 functions

noreply at xfce.org noreply at xfce.org
Fri Oct 4 05:13:45 CEST 2019


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

a   n   d   r   e       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 panel-plugins/xfce4-time-out-plugin.

commit 16153fb465fc759ec1574fcf63ea3d8829e0a2c2
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Sep 28 18:32:02 2019 -0300

    Replace deprecated x11 functions
---
 panel-plugin/time-out-fadeout.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/time-out-fadeout.c b/panel-plugin/time-out-fadeout.c
index d1c9a2c..0ec3390 100644
--- a/panel-plugin/time-out-fadeout.c
+++ b/panel-plugin/time-out-fadeout.c
@@ -71,7 +71,7 @@ time_out_fadeout_new_window (GdkDisplay *display,
   gboolean              composited;
   gint                  scale;
 
-  gdk_error_trap_push ();
+  gdk_x11_display_error_trap_push (display);
 
   xdisplay = gdk_x11_display_get_xdisplay (display);
   root = gdk_screen_get_root_window (screen);
@@ -141,8 +141,8 @@ time_out_fadeout_new_window (GdkDisplay *display,
       cairo_surface_destroy (surface);
     }
 
-  gdk_flush ();
-  gdk_error_trap_pop_ignored ();
+  gdk_display_flush (display);
+  gdk_x11_display_error_trap_pop_ignored (display);
 
   return xwindow;
 }
@@ -173,10 +173,12 @@ void
 time_out_fadeout_destroy (TimeOutFadeout *fadeout)
 {
 #ifdef GDK_WINDOWING_X11
-  gdk_error_trap_push ();
+  GdkDisplay *display = gdk_display_get_default ();
+
+  gdk_x11_display_error_trap_push (display);
   XDestroyWindow (fadeout->xdisplay, GPOINTER_TO_INT (fadeout->xwindow));
-  gdk_flush ();
-  gdk_error_trap_pop_ignored ();
+  gdk_display_flush (display);
+  gdk_x11_display_error_trap_pop_ignored (display);
 #endif
 
   g_slice_free (TimeOutFadeout, fadeout);

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


More information about the Xfce4-commits mailing list