static void
icon_data_free (gpointer p)
{
- IconData *icon_data = p;
-
- gdk_texture_clear_render_data (icon_data->source_texture);
- g_object_unref (icon_data->source_texture);
+ g_object_unref (((IconData *)p)->source_texture);
g_free (p);
}
gsk_gl_texture_atlas_mark_unused (icon_data->atlas, width + 2, height + 2);
icon_data->used = FALSE;
}
- }
+ }
icon_data->accessed = FALSE;
}
GdkTexture *texture,
const IconData **out_icon_data)
{
- IconData *icon_data;
-
- icon_data = gdk_texture_get_render_data (texture, self);
-
- if (!icon_data)
- icon_data = g_hash_table_lookup (self->icons, texture);
+ IconData *icon_data = g_hash_table_lookup (self->icons, texture);
if (icon_data)
{
gdk_gl_context_pop_debug_group (gdk_gl_context_get_current ());
- gdk_texture_set_render_data (texture, self, icon_data, NULL);
-
*out_icon_data = icon_data;
cairo_surface_destroy (surface);