[metacity] theme: make meta_frame_resize_to_string static



commit f5a82224163122a5dad581b5745d6b3a57189f88
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Jan 24 01:42:30 2016 +0200

    theme: make meta_frame_resize_to_string static

 src/ui/theme-private.h |    1 -
 src/ui/theme.c         |   44 ++++++++++++++++++++++----------------------
 2 files changed, 22 insertions(+), 23 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index a603a34..548511b 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_frame_resize_to_string             (MetaFrameResize              resize);
 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);
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 16edc0f..27d273e 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5444,6 +5444,28 @@ meta_frame_state_to_string (MetaFrameState state)
   return "<unknown>";
 }
 
+static const char*
+meta_frame_resize_to_string (MetaFrameResize resize)
+{
+  switch (resize)
+    {
+    case META_FRAME_RESIZE_NONE:
+      return "none";
+    case META_FRAME_RESIZE_VERTICAL:
+      return "vertical";
+    case META_FRAME_RESIZE_HORIZONTAL:
+      return "horizontal";
+    case META_FRAME_RESIZE_BOTH:
+      return "both";
+    case META_FRAME_RESIZE_LAST:
+      break;
+    default:
+      break;
+    }
+
+  return "<unknown>";
+}
+
 static gboolean
 check_state  (MetaFrameStyleSet *style_set,
               MetaFrameState     state,
@@ -6649,28 +6671,6 @@ meta_pango_font_desc_get_text_height (const PangoFontDescription *font_desc,
   return retval;
 }
 
-const char*
-meta_frame_resize_to_string (MetaFrameResize resize)
-{
-  switch (resize)
-    {
-    case META_FRAME_RESIZE_NONE:
-      return "none";
-    case META_FRAME_RESIZE_VERTICAL:
-      return "vertical";
-    case META_FRAME_RESIZE_HORIZONTAL:
-      return "horizontal";
-    case META_FRAME_RESIZE_BOTH:
-      return "both";
-    case META_FRAME_RESIZE_LAST:
-      break;
-    default:
-      break;
-    }
-
-  return "<unknown>";
-}
-
 MetaFrameFocus
 meta_frame_focus_from_string (const char *str)
 {


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