# HG changeset patch # User Gary Kramlich # Date 1739893824 21600 # Node ID 9d11a64f19f4918778228b126cabf408c6078c24 # Parent c1ee3a2f783e065b16038a298558dbf3fd842e0c 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/ diff -r c1ee3a2f783e -r 9d11a64f19f4 pidgin/plugins/idle-xscreensaver/idle-xscreensaver.c --- 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",