summaryrefslogtreecommitdiff
path: root/applets/wncklet/workspace-switcher.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-11 07:39:07 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-12 07:04:31 +0100
commitab9944b4b5cc40468302894be22c091248754a5e (patch)
treef9eeed4c353e4010d62d6013ad2b0dd4bdaf036a /applets/wncklet/workspace-switcher.c
parent14850f26540c21672a9bf22a16bbb78e47eb73d1 (diff)
downloadmate-panel-ab9944b4b5cc40468302894be22c091248754a5e.tar.bz2
mate-panel-ab9944b4b5cc40468302894be22c091248754a5e.tar.xz
GTK+3 workspace-switcher: fix deprecated warnings
gtk_window_reshow_with_initial_size replaced with suggestion from this commit: https://git.gnome.org/browse/gtk+/commit/?id=01f7ed1 taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=ce5b1fb
Diffstat (limited to 'applets/wncklet/workspace-switcher.c')
-rw-r--r--applets/wncklet/workspace-switcher.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index ca0341bc..b2c62483 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -132,8 +132,16 @@ static void update_properties_for_wm(PagerData* pager)
g_assert_not_reached();
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ if (pager->properties_dialog) {
+ gtk_widget_hide (pager->properties_dialog);
+ gtk_widget_unrealize (pager->properties_dialog);
+ gtk_widget_show (pager->properties_dialog);
+ }
+#else
if (pager->properties_dialog)
gtk_window_reshow_with_initial_size(GTK_WINDOW(pager->properties_dialog));
+#endif
}
static void window_manager_changed(WnckScreen* screen, PagerData* pager)