[metacity] theme: make meta_button_state_to_string static
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] theme: make meta_button_state_to_string static
- Date: Thu, 28 Jan 2016 09:18:17 +0000 (UTC)
commit ccf902ed251edc94efd6d414b4bde291cc7c1804
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Jan 24 01:23:09 2016 +0200
theme: make meta_button_state_to_string static
src/ui/theme-private.h | 1 -
src/ui/theme.c | 40 ++++++++++++++++++++--------------------
2 files changed, 20 insertions(+), 21 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index a7dfa25..3a5e7ab 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -874,7 +874,6 @@ gboolean meta_theme_lookup_color_constant (MetaTheme
const char *name,
char **value);
-const char *meta_button_state_to_string (MetaButtonState state);
MetaButtonType meta_button_type_from_string (const char *str,
MetaTheme *theme);
const char *meta_button_type_to_string (MetaButtonType type);
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 68cc607..39909dc 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -4628,6 +4628,26 @@ meta_frame_style_apply_scale (const MetaFrameStyle *style,
MAX (size * style->layout->title_scale, 1));
}
+static const char*
+meta_button_state_to_string (MetaButtonState state)
+{
+ switch (state)
+ {
+ case META_BUTTON_STATE_NORMAL:
+ return "normal";
+ case META_BUTTON_STATE_PRESSED:
+ return "pressed";
+ case META_BUTTON_STATE_PRELIGHT:
+ return "prelight";
+ case META_BUTTON_STATE_LAST:
+ break;
+ default:
+ break;
+ }
+
+ return "<unknown>";
+}
+
gboolean
meta_frame_style_validate (MetaFrameStyle *style,
guint current_theme_version,
@@ -6547,26 +6567,6 @@ meta_pango_font_desc_get_text_height (const PangoFontDescription *font_desc,
return retval;
}
-const char*
-meta_button_state_to_string (MetaButtonState state)
-{
- switch (state)
- {
- case META_BUTTON_STATE_NORMAL:
- return "normal";
- case META_BUTTON_STATE_PRESSED:
- return "pressed";
- case META_BUTTON_STATE_PRELIGHT:
- return "prelight";
- case META_BUTTON_STATE_LAST:
- break;
- default:
- break;
- }
-
- return "<unknown>";
-}
-
MetaButtonType
meta_button_type_from_string (const char *str, MetaTheme *theme)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]