Fix simple GTK+ deprecations

This commit is contained in:
Jasper St. Pierre 2013-09-10 17:11:16 -04:00
parent d46ceead04
commit d66e0a0b45
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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