GNOME Bugzilla – Bug 690317
Make the theme-viewer respect typical viewing contents
Last modified: 2013-01-11 17:58:40 UTC
This was noted by Company on IRC, that the selectors for actual frame drawing and theme-viewer are different.
Created attachment 231683 [details] [review] theme: Make meta_frame_draw_theme take a GtkStyleContext instead of a widget The style context of the widget is rarely what we want. We won't fix this to be a MetaFrames style context yet; this just changes the internal API.
Created attachment 231684 [details] [review] theme-viewer: use the same GtkStyleContext as mutter usually renders
Review of attachment 231683 [details] [review]: OK
Review of attachment 231684 [details] [review]: This all look looks fine to me, except that the theme viewer is still using gtk_widget_get_style_context (widget) rather than the style context that it is now creating. Can you figure out some way to test the patch?
Created attachment 233096 [details] [review] theme-viewer: use the same GtkStyleContext as mutter usually renders Hm, I thought I completed this patch set, but I guess not. Thanks for spotting!
Comment on attachment 231683 [details] [review] theme: Make meta_frame_draw_theme take a GtkStyleContext instead of a widget Attachment 231683 [details] pushed as 22a3126 - theme: Make meta_frame_draw_theme take a GtkStyleContext instead of a widget
Review of attachment 233096 [details] [review]: Looks good
Attachment 233096 [details] pushed as 5c33b0d - theme-viewer: use the same GtkStyleContext as mutter usually renders
Created attachment 233177 [details] [review] theme: Fix a memory leak Commit 5c33b0d tried to copy/paste the code that constructed classes, but for some reason didn't copy the theme name.
Created attachment 233178 [details] [review] theme: Add the .background style class back to frames GtkWindow added the BACKGROUND style class to all windows, which the CSS file selects on to set a background color for all windows. Without this, the background color becomes undefined, and thus window frames look like they have "glitchy" graphics.
Reopening
Review of attachment 233177 [details] [review]: Yup
Review of attachment 233178 [details] [review]: wfm
Attachment 233177 [details] pushed as 9b34545 - theme: Fix a memory leak Attachment 233178 [details] pushed as 47be4fd - theme: Add the .background style class back to frames