After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672858 - Commit 7603e6e4 breaks setting "background-image" from cairo pattern
Commit 7603e6e4 breaks setting "background-image" from cairo pattern
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-03-26 15:55 UTC by Peter Hurley
Modified: 2018-05-02 15:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screen of buggy panels (168.01 KB, image/png)
2014-05-07 16:07 UTC, ria.freelander
Details

Description Peter Hurley 2012-03-26 15:55:43 UTC
Setting the "background-image" style property to a cairo pattern no longer works as of commit 7603e6e4.  For example,

cairo_pattern_t *pattern;

....
gtk_style_properties_set(properties, GTK_STATE_FLAG_NORMAL,
                         "background-image", pattern,
                         NULL);

logs an assert failure in _gtk_style_properties_set_property_by_property and returns without setting the "background-image" property.
Comment 1 Sebastian 2012-05-15 11:37:27 UTC
This bug affects me too. When I call panel_applet_set_background_widget then I see the following output on my screen:

(window-picker-applet:3683): Gtk-CRITICAL **: _gtk_style_properties_set_property_by_property: assertion `_gtk_css_value_holds (value, _gtk_css_style_property_get_computed_type (style_prop))' failed
Comment 2 Sebastian 2012-08-26 08:43:27 UTC
Peter, do you know if this bug got fixed for 3.6?
Comment 3 Peter Hurley 2012-08-29 21:10:12 UTC
I haven't tested it, but I do know that the assert that fails was removed shortly after 3.4 (but this may have been a merge error).
Comment 4 ria.freelander 2014-05-07 16:03:20 UTC
I think this is vaild for 3.12 also, because mate-panel and gnome panel 3.8 does not work properly similar to https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/966697
Comment 5 ria.freelander 2014-05-07 16:07:53 UTC
Created attachment 276081 [details]
Screen of buggy panels
Comment 6 Kjartan Maraas 2017-04-06 21:45:09 UTC
Removing GNOME 3.4 target.
Comment 7 GNOME Infrastructure Team 2018-05-02 15:22:51 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/390.