gtk_image_set_from_resource was setting the resource_path,
only to have it overwritten again before returning. That
is not as it should be, so change things to set the resource
path late.
https://bugzilla.gnome.org/show_bug.cgi?id=751443
return;
}
- priv->resource_path = g_strdup (resource_path);
-
if (gdk_pixbuf_animation_is_static_image (animation))
gtk_image_set_from_pixbuf (image, gdk_pixbuf_animation_get_static_image (animation));
else
_gtk_icon_helper_set_pixbuf_scale (priv->icon_helper, scale_factor);
+ priv->resource_path = g_strdup (resource_path);
+
g_object_notify (G_OBJECT (image), "resource");
g_object_unref (animation);