GNOME Bugzilla – Bug 751443
resource_path value cleared in gtk_image_set_from_resource
Last modified: 2015-06-25 10:52:53 UTC
Created attachment 306003 [details] [review] gtk_image_set_from_resource patch In the gtk3 module of the project Ruby-gnome2, we have observed that when a Gtk::Image object was created from a resource, the resource_path was always NULL. Here is a link to the github pull request that relates the issue: https://github.com/ruby-gnome2/ruby-gnome2/pull/461 In the gtk3_image_set_from_resource, the resource_path is set with : priv->resource_path = g_strdup (resource_path); Then gtk_image_set_from_pixbuf or gtk_image_set_from_animation are called. Those two functions call gtk_image_clear() which call gtk_image_reset() which clears priv->resource_path. The owner of the ruby-gnome2 repository provided a git patch that I have attached to this bug request. Regards
Thanks for the patch