[metacity/cowbell] reorder
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] reorder
- Date: Mon, 19 Oct 2009 18:47:38 +0000 (UTC)
commit ce2438508e93a29578f456d26a325fd1f6befb35
Author: Thomas Thurman <tthurman gnome org>
Date: Mon Oct 19 14:35:44 2009 -0400
reorder
src/ui/theme.c | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index c7ee5eb..edf2270 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -572,6 +572,23 @@ meta_theme_draw_frame_with_style (MetaTheme *theme,
}
/**
+ * Returns the style to use with the given type and flags.
+ * When you're done with it, call ccss_style_destroy (style).
+ * (FIXME: Currently always returns the plain style.)
+ */
+static ccss_style_t *
+cowbell_get_current_style (MetaTheme *theme,
+ MetaFrameType type,
+ MetaFrameFlags flags,
+ CopperClasses style_id)
+{
+ ccss_stylesheet_t *stylesheet = theme->stylesheet;
+
+ return ccss_stylesheet_query (stylesheet,
+ (ccss_node_t*) &cowbell_nodes[style_id]);
+}
+
+/**
* Finds the size of the edges (borders, margins, and optionally padding) of
* an element with a given CSS style. Any of the out parameters can be NULL
* in order not to receive the value; if they are not, the answer will be
@@ -646,23 +663,6 @@ cowbell_get_edge_sizes (ccss_style_t *style,
if (right) *right += (int) results[3];
}
-/**
- * Returns the style to use with the given type and flags.
- * When you're done with it, call ccss_style_destroy (style).
- * (FIXME: Currently always returns the plain style.)
- */
-static ccss_style_t *
-cowbell_get_current_style (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags,
- CopperClasses style_id)
-{
- ccss_stylesheet_t *stylesheet = theme->stylesheet;
-
- return ccss_stylesheet_query (stylesheet,
- (ccss_node_t*) &cowbell_nodes[style_id]);
-}
-
void
meta_theme_get_frame_borders (MetaTheme *theme,
MetaFrameType type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]