[seahorse] Fix for deprecations in GTK+ 3.8.x and later



commit c910a80535b171e62e8d1f87e4c945824eb863a6
Author: Stef Walter <stefw gnome org>
Date:   Fri Apr 19 09:23:40 2013 +0200

    Fix for deprecations in GTK+ 3.8.x and later

 src/seahorse-sidebar.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/seahorse-sidebar.c b/src/seahorse-sidebar.c
index 13e615c..b6ab359 100644
--- a/src/seahorse-sidebar.c
+++ b/src/seahorse-sidebar.c
@@ -209,7 +209,11 @@ ensure_sidebar_pixbufs (SeahorseSidebar *self)
                self->pixbuf_lock = gtk_icon_info_load_symbolic_for_context (icon_info, style, NULL, NULL);
        if (!self->pixbuf_lock_l)
                self->pixbuf_lock_l = create_spotlight_pixbuf (self->pixbuf_lock);
+#if GTK_CHECK_VERSION(3, 8, 0)
+       g_object_unref (icon_info);
+#else
        gtk_icon_info_free (icon_info);
+#endif
        g_object_unref (icon);
 
        /* Unlock icon */
@@ -220,7 +224,11 @@ ensure_sidebar_pixbufs (SeahorseSidebar *self)
                self->pixbuf_unlock = gtk_icon_info_load_symbolic_for_context (icon_info, style, NULL, NULL);
        if (!self->pixbuf_unlock_l)
                self->pixbuf_unlock_l = create_spotlight_pixbuf (self->pixbuf_unlock);
+#if GTK_CHECK_VERSION(3, 8, 0)
+       g_object_unref (icon_info);
+#else
        gtk_icon_info_free (icon_info);
+#endif
        g_object_unref (icon);
 }
 


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