From c69edad250ac1e98d68b2c7a2d2e4bc54d4bd46e Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 5 Dec 2020 12:49:24 +0100 Subject: libslab-utils: Remove dead function libslab_get_current_screen --- libslab/libslab-utils.c | 23 ----------------------- libslab/libslab-utils.h | 2 -- 2 files changed, 25 deletions(-) (limited to 'libslab') diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c index 5a8b862f..27612262 100644 --- a/libslab/libslab-utils.c +++ b/libslab/libslab-utils.c @@ -69,26 +69,3 @@ libslab_mate_desktop_item_new_from_unknown_id (const gchar *id) return NULL; } - -/* Ugh, here we don't have knowledge of the screen that is being used. So, do - * what we can to find it. - */ -GdkScreen * -libslab_get_current_screen (void) -{ - GdkEvent *event; - GdkScreen *screen = NULL; - - event = gtk_get_current_event (); - if (event) { - if (event->any.window) - screen = gtk_window_get_screen (GTK_WINDOW (event->any.window)); - - gdk_event_free (event); - } - - if (!screen) - screen = gdk_screen_get_default (); - - return screen; -} diff --git a/libslab/libslab-utils.h b/libslab/libslab-utils.h index 466e2e9c..069ff3c7 100644 --- a/libslab/libslab-utils.h +++ b/libslab/libslab-utils.h @@ -9,8 +9,6 @@ G_BEGIN_DECLS MateDesktopItem *libslab_mate_desktop_item_new_from_unknown_id (const gchar *id); -GdkScreen *libslab_get_current_screen (void); - G_END_DECLS #endif /* __LIBSLAB_UTILS_H__ */ -- cgit v1.2.1