[mutter/wip/cb2eb3: 15/55] theme: Require a GTK+ style context in meta_theme_calc_geometry
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/cb2eb3: 15/55] theme: Require a GTK+ style context in meta_theme_calc_geometry
- Date: Wed, 1 Oct 2014 15:48:41 +0000 (UTC)
commit fef2a061a8e2ff2fe7355c9db40aff5b36fc0b3a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Apr 26 19:26:49 2012 -0400
theme: Require a GTK+ style context in meta_theme_calc_geometry
src/ui/frames.c | 1 +
src/ui/theme-private.h | 1 +
src/ui/theme.c | 4 ++++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 75f3340..4a03ec4 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -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,
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 715adb1..8a36a7e 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -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,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index cc4faa3..96c37c6 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]