[Xfce4-commits] [apps/xfce4-screenshooter] 02/02: Ignore remaining deprecations

noreply at xfce.org noreply at xfce.org
Sat Mar 9 03:47:35 CET 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 apps/xfce4-screenshooter.

commit ae3551c2ca465861d2696336c1da79176b712e2e
Author: Andre Miranda <andreldm at xfce.org>
Date:   Fri Mar 8 23:43:32 2019 -0300

    Ignore remaining deprecations
    
    Because there are no direct replacements.
    
    gdk_screen_get_active_window:
    Either we have to use X11 directly or iterate over the window list
    from gdk_screen_get_window_stack.
    
    gdk_window_process_all_updates:
    Apparently it's fine to remove this function call, but let's keep
    it for now, better safe than sorry.
---
 lib/screenshooter-capture.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index 4deef58..4e4b78e 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -117,7 +117,9 @@ static GdkWindow
 
   TRACE ("Get the active window");
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   window = gdk_screen_get_active_window (screen);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* If there is no active window, we fallback to the whole screen. */
   if (G_UNLIKELY (window == NULL))
@@ -1430,7 +1432,9 @@ GdkPixbuf *screenshooter_capture_screenshot (gint     region,
   display = gdk_display_get_default ();
   gdk_display_sync (display);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gdk_window_process_all_updates ();
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* Get the window/desktop we want to screenshot*/
   if (region == FULLSCREEN)

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


More information about the Xfce4-commits mailing list