summaryrefslogtreecommitdiff
path: root/mate-panel/panel-multiscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-multiscreen.c')
-rw-r--r--mate-panel/panel-multiscreen.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/mate-panel/panel-multiscreen.c b/mate-panel/panel-multiscreen.c
index 8f8554f0..64dda92e 100644
--- a/mate-panel/panel-multiscreen.c
+++ b/mate-panel/panel-multiscreen.c
@@ -410,11 +410,7 @@ panel_multiscreen_init (void)
return;
display = gdk_display_get_default ();
-#if GTK_CHECK_VERSION (3, 0, 0)
screens = 1;
-#else
- screens = gdk_display_get_n_screens (display);
-#endif
panel_multiscreen_init_randr (display);
@@ -446,15 +442,8 @@ panel_multiscreen_init (void)
void
panel_multiscreen_reinit (void)
{
-#if GTK_CHECK_VERSION (3, 0, 0)
GdkScreen *screen;
GList *toplevels, *l;
-#else
- GdkDisplay *display;
- GList *toplevels, *l;
- int new_screens;
- int i;
-#endif
if (monitors)
g_free (monitors);
@@ -467,24 +456,8 @@ panel_multiscreen_reinit (void)
g_free (geometries);
}
-#if GTK_CHECK_VERSION (3, 0, 0)
screen = gdk_screen_get_default ();
g_signal_handlers_disconnect_by_func (screen, panel_multiscreen_queue_reinit, NULL);
-#else
- display = gdk_display_get_default ();
- /* Don't use the screens variable since in the future, we might
- * want to call this function when a screen appears/disappears. */
- new_screens = gdk_display_get_n_screens (display);
-
- for (i = 0; i < new_screens; i++) {
- GdkScreen *screen;
-
- screen = gdk_display_get_screen (display, i);
- g_signal_handlers_disconnect_by_func (screen,
- panel_multiscreen_queue_reinit,
- NULL);
- }
-#endif
initialized = FALSE;
panel_multiscreen_init ();