theme: Require a GTK+ style context in meta_theme_calc_geometry

This commit is contained in:
Jasper St. Pierre 2012-04-26 19:26:49 -04:00
parent bdb995d758
commit fef2a061a8
3 changed files with 6 additions and 0 deletions

View File

@ -505,6 +505,7 @@ meta_frames_calc_geometry (MetaFrames *frames,
meta_prefs_get_button_layout (&button_layout);
meta_theme_calc_geometry (frame->tv->theme,
frame->tv->style_context,
type,
frame->text_height,
flags,

View File

@ -1086,6 +1086,7 @@ void meta_theme_get_frame_borders (MetaTheme *theme,
MetaFrameBorders *borders);
void meta_theme_calc_geometry (MetaTheme *theme,
GtkStyleContext *ctx,
MetaFrameType type,
int text_height,
MetaFrameFlags flags,

View File

@ -514,6 +514,7 @@ strip_button (MetaButtonSpace *func_rects[MAX_BUTTONS_PER_CORNER],
static void
meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
GtkStyleContext *ctx,
int text_height,
MetaFrameFlags flags,
int client_width,
@ -5047,6 +5048,7 @@ meta_theme_draw_frame_with_style (MetaTheme *theme,
return;
meta_frame_layout_calc_geometry (style->layout,
style_gtk,
text_height,
flags,
client_width, client_height,
@ -5116,6 +5118,7 @@ meta_theme_get_frame_borders (MetaTheme *theme,
void
meta_theme_calc_geometry (MetaTheme *theme,
GtkStyleContext *ctx,
MetaFrameType type,
int text_height,
MetaFrameFlags flags,
@ -5135,6 +5138,7 @@ meta_theme_calc_geometry (MetaTheme *theme,
return;
meta_frame_layout_calc_geometry (style->layout,
ctx,
text_height,
flags,
client_width, client_height,