Fix simple GTK+ deprecations
This commit is contained in:
parent
d46ceead04
commit
d66e0a0b45
@ -266,7 +266,7 @@ shell_app_create_faded_icon_cpu (StTextureCache *cache,
|
|||||||
return COGL_INVALID_HANDLE;
|
return COGL_INVALID_HANDLE;
|
||||||
|
|
||||||
pixbuf = gtk_icon_info_load_icon (info, NULL);
|
pixbuf = gtk_icon_info_load_icon (info, NULL);
|
||||||
gtk_icon_info_free (info);
|
g_object_unref (info);
|
||||||
|
|
||||||
if (pixbuf == NULL)
|
if (pixbuf == NULL)
|
||||||
return COGL_INVALID_HANDLE;
|
return COGL_INVALID_HANDLE;
|
||||||
|
@ -272,7 +272,7 @@ texture_load_data_free (gpointer p)
|
|||||||
|
|
||||||
if (data->icon_info)
|
if (data->icon_info)
|
||||||
{
|
{
|
||||||
gtk_icon_info_free (data->icon_info);
|
g_object_unref (data->icon_info);
|
||||||
if (data->colors)
|
if (data->colors)
|
||||||
st_icon_colors_unref (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 (ensure_request (cache, key, policy, &request, texture))
|
||||||
{
|
{
|
||||||
/* If there's an outstanding request, we've just added ourselves to it */
|
/* 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);
|
g_free (key);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user