summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2014-02-08 17:33:50 -0500
committerShaun McCance <shaunm@gnome.org>2014-02-08 17:33:50 -0500
commit9c3f2e251e4b91d0f191cfe84edff99d56a5ad34 (patch)
tree1cd3106b34f1ef9ead0fc959a28033e1b18bb51b
parent8537039465ab7951b747df2d2c30779bbd3b501f (diff)
downloadyelp-9c3f2e251e4b91d0f191cfe84edff99d56a5ad34.tar.gz
Fix deprecation warning for gtk_icon_info_free
-rw-r--r--configure.ac2
-rw-r--r--libyelp/yelp-help-list.c2
-rw-r--r--libyelp/yelp-settings.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 5dc1e333..bed70067 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 44363e33..9cb72088 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 2a4f6f09..1cf5a6bb 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;