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