diff options
author | rbuj <[email protected]> | 2020-12-05 12:49:24 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2020-12-11 00:05:33 +0000 |
commit | c69edad250ac1e98d68b2c7a2d2e4bc54d4bd46e (patch) | |
tree | 8b9cf5f13ed1c5728ed4ef6b97717063a84db5cd | |
parent | 8894c7ca5d86f59bc1c429153b329dddd4325842 (diff) | |
download | mate-control-center-c69edad250ac1e98d68b2c7a2d2e4bc54d4bd46e.tar.bz2 mate-control-center-c69edad250ac1e98d68b2c7a2d2e4bc54d4bd46e.tar.xz |
libslab-utils: Remove dead function libslab_get_current_screen
-rw-r--r-- | libslab/libslab-utils.c | 23 | ||||
-rw-r--r-- | libslab/libslab-utils.h | 2 |
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__ */ |