[yelp] Fix deprecation warning for gtk_icon_info_free



commit 9c3f2e251e4b91d0f191cfe84edff99d56a5ad34
Author: Shaun McCance <shaunm gnome org>
Date:   Sat Feb 8 17:33:50 2014 -0500

    Fix deprecation warning for gtk_icon_info_free

 configure.ac             |    2 +-
 libyelp/yelp-help-list.c |    2 +-
 libyelp/yelp-settings.c  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5dc1e33..bed7006 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,7 @@ PKG_CHECK_MODULES(YELP,
        gio-2.0 >= 2.25.11
        gio-unix-2.0
        gtk+-unix-print-3.0
-       gtk+-3.0 >= 2.91.8
+       gtk+-3.0 >= 3.8.0
        libxml-2.0 >= 2.6.5
        libxslt >= 1.1.4
        libexslt >= 0.8.1
diff --git a/libyelp/yelp-help-list.c b/libyelp/yelp-help-list.c
index 44363e3..9cb7208 100644
--- a/libyelp/yelp-help-list.c
+++ b/libyelp/yelp-help-list.c
@@ -417,7 +417,7 @@ help_list_think (YelpHelpList *list)
                     const gchar *iconfile = gtk_icon_info_get_filename (info);
                     if (iconfile)
                         entry->icon = g_filename_to_uri (iconfile, NULL, NULL);
-                    gtk_icon_info_free (info);
+                    g_object_unref (info);
                 }
             }
             g_object_unref (app);
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 2a4f6f0..1cf5a6b 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -1065,7 +1065,7 @@ icon_theme_changed (GtkIconTheme *theme,
        if (info != NULL) {
            settings->priv->icons[i] = g_filename_to_uri (gtk_icon_info_get_filename (info),
                                                           NULL, NULL);
-           gtk_icon_info_free (info);
+           g_object_unref (info);
        }
        else {
            settings->priv->icons[i] = NULL;


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