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/fish/fish.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'applets/fish/fish.c') diff --git a/applets/fish/fish.c b/applets/fish/fish.c index 45ce9228..e0898334 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -937,8 +937,7 @@ static void display_fortune_dialog(FishApplet* fish) clear_fortune_text (fish); - screen = gtk_widget_get_screen (GTK_WIDGET (fish)); - display = gdk_screen_get_display (screen); + display = gtk_widget_get_display (GTK_WIDGET (fish)); display_name = g_strdup (gdk_display_get_name (display)); g_spawn_async_with_pipes (NULL, /* working directory */ argv, -- cgit v1.2.1