[metacity] theme: make meta_frame_resize_from_string static



commit 7115d86eb6521a92517490f20956528ca3dea9b4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Jan 24 01:41:24 2016 +0200

    theme: make meta_frame_resize_from_string static

 src/ui/theme-parser.c  |   15 +++++++++++++++
 src/ui/theme-private.h |    1 -
 src/ui/theme.c         |   15 ---------------
 3 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c
index fd7b723..e190666 100644
--- a/src/ui/theme-parser.c
+++ b/src/ui/theme-parser.c
@@ -2890,6 +2890,21 @@ meta_frame_state_from_string (const char *str)
     return META_FRAME_STATE_LAST;
 }
 
+static MetaFrameResize
+meta_frame_resize_from_string (const char *str)
+{
+  if (strcmp ("none", str) == 0)
+    return META_FRAME_RESIZE_NONE;
+  else if (strcmp ("vertical", str) == 0)
+    return META_FRAME_RESIZE_VERTICAL;
+  else if (strcmp ("horizontal", str) == 0)
+    return META_FRAME_RESIZE_HORIZONTAL;
+  else if (strcmp ("both", str) == 0)
+    return META_FRAME_RESIZE_BOTH;
+  else
+    return META_FRAME_RESIZE_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 6330a89..a603a34 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);
 
-MetaFrameResize        meta_frame_resize_from_string           (const char                  *str);
 const char            *meta_frame_resize_to_string             (MetaFrameResize              resize);
 MetaFrameFocus         meta_frame_focus_from_string            (const char                  *str);
 const char            *meta_frame_focus_to_string              (MetaFrameFocus               focus);
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 1c7a64f..16edc0f 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -6649,21 +6649,6 @@ meta_pango_font_desc_get_text_height (const PangoFontDescription *font_desc,
   return retval;
 }
 
-MetaFrameResize
-meta_frame_resize_from_string (const char *str)
-{
-  if (strcmp ("none", str) == 0)
-    return META_FRAME_RESIZE_NONE;
-  else if (strcmp ("vertical", str) == 0)
-    return META_FRAME_RESIZE_VERTICAL;
-  else if (strcmp ("horizontal", str) == 0)
-    return META_FRAME_RESIZE_HORIZONTAL;
-  else if (strcmp ("both", str) == 0)
-    return META_FRAME_RESIZE_BOTH;
-  else
-    return META_FRAME_RESIZE_LAST;
-}
-
 const char*
 meta_frame_resize_to_string (MetaFrameResize resize)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]