[glade] Cleanup deprecation warnings in GtkDialog adaptor



commit 4eaa3745705a170ab1e55568e86742797653859a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue May 7 14:23:33 2013 +0900

    Cleanup deprecation warnings in GtkDialog adaptor
    
    (special cases some deprecated subclasses)

 plugins/gtk+/glade-gtk-dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-dialog.c b/plugins/gtk+/glade-gtk-dialog.c
index baec69d..fb9cccc 100644
--- a/plugins/gtk+/glade-gtk-dialog.c
+++ b/plugins/gtk+/glade-gtk-dialog.c
@@ -111,6 +111,7 @@ glade_gtk_dialog_post_create (GladeWidgetAdaptor *adaptor,
       GObject *child;
       gint size;
 
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       if (GTK_IS_COLOR_SELECTION_DIALOG (object))
         {
           child = glade_widget_adaptor_get_internal_child (adaptor, object, "color_selection");
@@ -123,6 +124,7 @@ glade_gtk_dialog_post_create (GladeWidgetAdaptor *adaptor,
         }
       else
         size = -1;
+      G_GNUC_END_IGNORE_DEPRECATIONS;
 
       /* Set this to a sane value. At load time, if there are any children then
        * size will adjust appropriately (otherwise the default "3" gets


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