[metacity] theme: make meta_frame_focus_from_string static
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] theme: make meta_frame_focus_from_string static
- Date: Thu, 28 Jan 2016 09:18:57 +0000 (UTC)
commit b6e967796a43f42571d9d84992cd39095b5bf274
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Jan 24 11:28:58 2016 +0200
theme: make meta_frame_focus_from_string static
src/ui/theme-parser.c | 11 +++++++++++
src/ui/theme-private.h | 1 -
src/ui/theme.c | 11 -----------
3 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c
index e190666..c1523de 100644
--- a/src/ui/theme-parser.c
+++ b/src/ui/theme-parser.c
@@ -2905,6 +2905,17 @@ meta_frame_resize_from_string (const char *str)
return META_FRAME_RESIZE_LAST;
}
+static MetaFrameFocus
+meta_frame_focus_from_string (const char *str)
+{
+ if (strcmp ("no", str) == 0)
+ return META_FRAME_FOCUS_NO;
+ else if (strcmp ("yes", str) == 0)
+ return META_FRAME_FOCUS_YES;
+ else
+ return META_FRAME_FOCUS_LAST;
+}
+
static void
parse_style_set_element (GMarkupParseContext *context,
const gchar *element_name,
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 548511b..baa186a 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);
-MetaFrameFocus meta_frame_focus_from_string (const char *str);
const char *meta_frame_focus_to_string (MetaFrameFocus focus);
const char *meta_frame_type_to_string (MetaFrameType type);
MetaGradientType meta_gradient_type_from_string (const char *str);
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 27d273e..480baca 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -6671,17 +6671,6 @@ meta_pango_font_desc_get_text_height (const PangoFontDescription *font_desc,
return retval;
}
-MetaFrameFocus
-meta_frame_focus_from_string (const char *str)
-{
- if (strcmp ("no", str) == 0)
- return META_FRAME_FOCUS_NO;
- else if (strcmp ("yes", str) == 0)
- return META_FRAME_FOCUS_YES;
- else
- return META_FRAME_FOCUS_LAST;
-}
-
const char*
meta_frame_focus_to_string (MetaFrameFocus focus)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]