diff options
author | monsta <[email protected]> | 2016-11-21 21:14:26 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-21 21:14:26 +0300 |
commit | d0ddaedffa7d417a699cafce73c1e418515c4a28 (patch) | |
tree | 645b7a86e32b21113e1ce14f563bfb8d8900fa53 /mate-panel/panel-multiscreen.c | |
parent | 7dfeb78328039cf92a9f45d64c9b3662d967a1fe (diff) | |
download | mate-panel-d0ddaedffa7d417a699cafce73c1e418515c4a28.tar.bz2 mate-panel-d0ddaedffa7d417a699cafce73c1e418515c4a28.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmate-desktop >= 1.17
WARNING: use GTK+3 build of libmateweather for this build.
that lib is not migrated to GTK+3 only as we will possibly
use libgweather instead of it.
Diffstat (limited to 'mate-panel/panel-multiscreen.c')
-rw-r--r-- | mate-panel/panel-multiscreen.c | 27 |
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 (); |