[metacity/cowbell] stub fn to get style
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] stub fn to get style
- Date: Mon, 19 Oct 2009 15:47:36 +0000 (UTC)
commit a68a5c7ac76d3768beade9e62e8df23c0b80dc6a
Author: Thomas Thurman <tthurman gnome org>
Date: Mon Oct 19 11:17:58 2009 -0400
stub fn to get style
src/ui/theme.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 6f2b4fd..64e6c2d 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -586,6 +586,12 @@ cowbell_get_edge_sizes (ccss_style_t *style,
*right = SILLY_BORDER_SIZE;
}
+static ccss_style_t *
+cowbell_get_current_style ()
+{
+ /* stub */
+ return NULL;
+}
void
meta_theme_get_frame_borders (MetaTheme *theme,
@@ -598,6 +604,10 @@ meta_theme_get_frame_borders (MetaTheme *theme,
int *right_width)
{
/* stub */
+ ccss_style_t *style;
+
+ style = cowbell_get_current_style (theme, type, flags);
+
cowbell_get_edge_sizes (NULL, TRUE,
top_height,
bottom_height,
@@ -633,10 +643,15 @@ meta_theme_calc_geometry (MetaTheme *theme,
const MetaButtonLayout *button_layout,
MetaFrameGeometry *fgeom)
{
+ /* stub */
+
int i;
+ ccss_style_t *style;
- /* stub */
- cowbell_get_edge_sizes (NULL, TRUE,
+ style = cowbell_get_current_style (theme, type, flags);
+
+ cowbell_get_edge_sizes (style,
+ TRUE,
&(fgeom->top_height),
&(fgeom->bottom_height),
&(fgeom->left_width),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]