Tue, 18 Feb 2025 09:50:24 -0600
Ignore deprecated api in the XScreenSaver idle source
Testing Done:
Compiled and verified the warnings were gone.
Reviewed at https://reviews.imfreedom.org/r/3847/
| pidgin/plugins/idle-xscreensaver/idle-xscreensaver.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/plugins/idle-xscreensaver/idle-xscreensaver.c Tue Feb 18 09:48:24 2025 -0600 +++ b/pidgin/plugins/idle-xscreensaver/idle-xscreensaver.c Tue Feb 18 09:50:24 2025 -0600 @@ -75,7 +75,10 @@ gulong bytes_after = 0; guchar *x_data_ptr = NULL; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS x11_display = gdk_x11_display_get_xdisplay(gdk_display); + G_GNUC_END_IGNORE_DEPRECATIONS + root_window = RootWindow(x11_display, 0); /* We don't use format or bytes_after, but if you pass NULL we @@ -186,17 +189,22 @@ } /* Set our input mask. */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS x11_display = gdk_x11_display_get_xdisplay(gdk_display); + G_GNUC_END_IGNORE_DEPRECATIONS + root_window = RootWindow(x11_display, 0); XGetWindowAttributes(x11_display, root_window, &attributes); XSelectInput(x11_display, root_window, attributes.your_event_mask | PropertyChangeMask); /* Grab our atoms. */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS XA_BLANK = gdk_x11_get_xatom_by_name_for_display(GDK_X11_DISPLAY(gdk_display), "BLANK"); XA_SCREENSAVER_STATUS = gdk_x11_get_xatom_by_name_for_display(GDK_X11_DISPLAY(gdk_display), "_SCREENSAVER_STATUS"); + G_GNUC_END_IGNORE_DEPRECATIONS /* Connect our signal. */ g_signal_connect_object(gdk_display, "xevent",