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.

https://bugzilla.gnome.org/show_bug.cgi?id=690317
This commit is contained in:
Jasper St. Pierre
2012-12-16 17:31:00 -05:00
parent 9596c24f83
commit 22a3126a2b
5 changed files with 27 additions and 64 deletions

View File

@ -2011,17 +2011,17 @@ meta_frames_paint (MetaFrames *frames,
meta_prefs_get_button_layout (&button_layout);
meta_theme_draw_frame_with_style (meta_theme_get_current (),
frame->style,
cr,
type,
flags,
w, h,
frame->layout,
frame->text_height,
&button_layout,
button_states,
mini_icon, icon);
meta_theme_draw_frame (meta_theme_get_current (),
frame->style,
cr,
type,
flags,
w, h,
frame->layout,
frame->text_height,
&button_layout,
button_states,
mini_icon, icon);
}
static void