diff options
author | Victor Kareh <[email protected]> | 2025-07-18 10:51:52 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2025-07-23 10:48:09 -0400 |
commit | 1e392a614d5f447531a6883ed9dc19b4c30b8eb6 (patch) | |
tree | 010ed78be185f70a84b33073c7f3a54f1024031a /applets/clock/clock.c | |
parent | 796528749b8a3e4227ca736b47f78ece64515b16 (diff) | |
download | mate-panel-1e392a614d5f447531a6883ed9dc19b4c30b8eb6.tar.bz2 mate-panel-1e392a614d5f447531a6883ed9dc19b4c30b8eb6.tar.xz |
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.
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r-- | applets/clock/clock.c | 3 |
1 files changed, 1 insertions, 2 deletions
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++) { |