From 1e392a614d5f447531a6883ed9dc19b4c30b8eb6 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 18 Jul 2025 10:51:52 -0400 Subject: Remove deprecated gdk_screen_get_* functions Screen functions are replaced with their Display equivalents to remove deprecation warnings. Display functions take into account the entire display server connection, rather than a single physical monitor. --- applets/clock/clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'applets/clock') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index fee7edf2..0eee5766 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -922,8 +922,7 @@ position_calendar_popup (ClockData *cd) button_w = allocation.width; button_h = allocation.height; - screen = gtk_window_get_screen (GTK_WINDOW (cd->calendar_popup)); - display = gdk_screen_get_display (screen); + display = gtk_widget_get_display (GTK_WIDGET (cd->calendar_popup)); n = gdk_display_get_n_monitors (display); for (i = 0; i < n; i++) { -- cgit v1.2.1