[gnome-panel] wncklet: fix deprecated warnings



commit ce5b1fb115053a5430c26c4da0bad3f22b9f972e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jul 9 00:55:41 2014 +0300

    wncklet: fix deprecated warnings
    
    gtk_window_reshow_with_initial_size replaced with suggestion from
    this commit:
    https://git.gnome.org/browse/gtk+/commit/?id=01f7ed1d073096364180d00c5684fb782779d454

 applets/wncklet/workspace-switcher.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 9676663..dc3f1bf 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -120,8 +120,11 @@ update_properties_for_wm (PagerData *pager)
                g_assert_not_reached ();
        }
 
-       if (pager->properties_dialog)
-               gtk_window_reshow_with_initial_size (GTK_WINDOW (pager->properties_dialog));
+       if (pager->properties_dialog) {
+               gtk_widget_hide (pager->properties_dialog);
+               gtk_widget_unrealize (pager->properties_dialog);
+               gtk_widget_show (pager->properties_dialog);
+       }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]