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 678790 - GtkBox background-color and padding is not themeable
GtkBox background-color and padding is not themeable
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-06-25 13:39 UTC by Manuel Quiñones
Modified: 2014-02-04 19:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
TestCase using PyGobject (643 bytes, application/octet-stream)
2012-06-25 13:39 UTC, Manuel Quiñones
Details
The CSS for the TestCase attached before (74 bytes, text/css)
2012-06-25 13:40 UTC, Manuel Quiñones
Details

Description Manuel Quiñones 2012-06-25 13:39:47 UTC
Created attachment 217198 [details]
TestCase using PyGobject

Is not possible to style the background color and the padding of a GtkBox using CSS.

I can style the background adding the GtkBox to a GtkEventBox and then using the gtk_widget_modify_bg () method, but I think this should be doable with CSS.

I can add paddings adding the GtkBox to a GtkAlignment and then using the gtk_alignment_set_padding () method, but I think the proper way is using CSS here too.
Comment 1 Manuel Quiñones 2012-06-25 13:40:59 UTC
Created attachment 217199 [details]
The CSS for the TestCase attached before
Comment 2 Matthias Clasen 2014-02-04 03:46:57 UTC
GtkBox is now drawing a background
Comment 3 Manuel Quiñones 2014-02-04 19:35:41 UTC
Impressive Matthias, thanks!