[seahorse/gnome-3-8] Fix for deprecations in GTK+ 3.8.x and later
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/gnome-3-8] Fix for deprecations in GTK+ 3.8.x and later
- Date: Fri, 19 Apr 2013 19:22:25 +0000 (UTC)
commit 1bb97c6cd5066a61226e8a12fd6236c38d944b4a
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]