[gnome-shell] Fix simple GTK+ deprecations



commit d66e0a0b45d6f7dc5fa7711e200cd9809de09857
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 10 17:11:16 2013 -0400

    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 0218c13..1f5017d 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 52f77df..17cb068 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


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