[metacity] theme: make meta_gtk_arrow_from_string static



commit 46e8dcf1039518bb1dc7ae45facae7af75c60661
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Jan 24 11:34:06 2016 +0200

    theme: make meta_gtk_arrow_from_string static

 src/ui/theme-parser.c  |   17 +++++++++++++++++
 src/ui/theme-private.h |    1 -
 src/ui/theme.c         |   17 -----------------
 3 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c
index 2eea30a..1bc0d7b 100644
--- a/src/ui/theme-parser.c
+++ b/src/ui/theme-parser.c
@@ -1626,6 +1626,23 @@ meta_gtk_shadow_from_string (const char *str)
     return -1;
 }
 
+static GtkArrowType
+meta_gtk_arrow_from_string (const char *str)
+{
+  if (strcmp ("up", str) == 0)
+    return GTK_ARROW_UP;
+  else if (strcmp ("down", str) == 0)
+    return GTK_ARROW_DOWN;
+  else if (strcmp ("left", str) == 0)
+    return GTK_ARROW_LEFT;
+  else if (strcmp ("right", str) == 0)
+    return GTK_ARROW_RIGHT;
+  else if (strcmp ("none", str) == 0)
+    return GTK_ARROW_NONE;
+  else
+    return -1;
+}
+
 static void
 parse_draw_op_element (GMarkupParseContext  *context,
                        const gchar          *element_name,
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 444929c..7187c5b 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -875,7 +875,6 @@ gboolean               meta_theme_lookup_color_constant        (MetaTheme
                                                                 char                       **value);
 
 GtkStateFlags          meta_gtk_state_from_string              (const char                  *str);
-GtkArrowType           meta_gtk_arrow_from_string              (const char                  *str);
 MetaImageFillType      meta_image_fill_type_from_string        (const char                  *str);
 
 PangoFontDescription  *meta_gtk_widget_get_font_desc           (GtkWidget                   *widget,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 5c2d217..164c8ed 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -6761,23 +6761,6 @@ meta_gtk_state_from_string (const char *str)
     return -1; /* hack */
 }
 
-GtkArrowType
-meta_gtk_arrow_from_string (const char *str)
-{
-  if (strcmp ("up", str) == 0)
-    return GTK_ARROW_UP;
-  else if (strcmp ("down", str) == 0)
-    return GTK_ARROW_DOWN;
-  else if (strcmp ("left", str) == 0)
-    return GTK_ARROW_LEFT;
-  else if (strcmp ("right", str) == 0)
-    return GTK_ARROW_RIGHT;
-  else if (strcmp ("none", str) == 0)
-    return GTK_ARROW_NONE;
-  else
-    return -1;
-}
-
 /**
  * Returns a fill_type from a string.  The inverse of
  * meta_image_fill_type_to_string().


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