summaryrefslogtreecommitdiff
path: root/libslab/libslab-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/libslab-utils.c')
-rw-r--r--libslab/libslab-utils.c23
1 files changed, 0 insertions, 23 deletions
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;
-}