From d66e0a0b45d6f7dc5fa7711e200cd9809de09857 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 10 Sep 2013 17:11:16 -0400 Subject: [PATCH] Fix simple GTK+ deprecations --- src/shell-app.c | 2 +- src/st/st-texture-cache.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell-app.c b/src/shell-app.c index 0218c133c..1f5017d26 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -266,7 +266,7 @@ shell_app_create_faded_icon_cpu (StTextureCache *cache, return COGL_INVALID_HANDLE; pixbuf = gtk_icon_info_load_icon (info, NULL); - gtk_icon_info_free (info); + g_object_unref (info); if (pixbuf == NULL) return COGL_INVALID_HANDLE; diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index 52f77dfe0..17cb0689d 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -272,7 +272,7 @@ texture_load_data_free (gpointer p) if (data->icon_info) { - gtk_icon_info_free (data->icon_info); + g_object_unref (data->icon_info); if (data->colors) st_icon_colors_unref (data->colors); } @@ -956,7 +956,7 @@ load_gicon_with_colors (StTextureCache *cache, if (ensure_request (cache, key, policy, &request, texture)) { /* If there's an outstanding request, we've just added ourselves to it */ - gtk_icon_info_free (info); + g_object_unref (info); g_free (key); } else