From ab9944b4b5cc40468302894be22c091248754a5e Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 11 Feb 2016 07:39:07 +0100 Subject: 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 --- applets/wncklet/workspace-switcher.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.2.1