mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
theme: Require a GTK+ style context in meta_theme_calc_geometry
This commit is contained in:
parent
bdb995d758
commit
fef2a061a8
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user