[metacity] libmetacity: don't expose meta_frame_type_from_string
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: don't expose meta_frame_type_from_string
- Date: Tue, 7 Jun 2016 18:29:50 +0000 (UTC)
commit 5f52959349ff23fd807a16ba79a7187decfee962
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jun 7 14:56:39 2016 +0300
libmetacity: don't expose meta_frame_type_from_string
libmetacity/meta-theme-metacity.c | 21 +++++++++++++++++++++
libmetacity/meta-theme.c | 21 ---------------------
libmetacity/meta-theme.h | 2 --
3 files changed, 21 insertions(+), 23 deletions(-)
---
diff --git a/libmetacity/meta-theme-metacity.c b/libmetacity/meta-theme-metacity.c
index f91ace1..06aadc0 100644
--- a/libmetacity/meta-theme-metacity.c
+++ b/libmetacity/meta-theme-metacity.c
@@ -908,6 +908,27 @@ meta_theme_metacity_insert_style_set (MetaThemeMetacity *metacity,
g_hash_table_replace (metacity->style_sets, g_strdup (name), style_set);
}
+static MetaFrameType
+meta_frame_type_from_string (const gchar *str)
+{
+ if (strcmp ("normal", str) == 0)
+ return META_FRAME_TYPE_NORMAL;
+ else if (strcmp ("dialog", str) == 0)
+ return META_FRAME_TYPE_DIALOG;
+ else if (strcmp ("modal_dialog", str) == 0)
+ return META_FRAME_TYPE_MODAL_DIALOG;
+ else if (strcmp ("utility", str) == 0)
+ return META_FRAME_TYPE_UTILITY;
+ else if (strcmp ("menu", str) == 0)
+ return META_FRAME_TYPE_MENU;
+ else if (strcmp ("border", str) == 0)
+ return META_FRAME_TYPE_BORDER;
+ else if (strcmp ("attached", str) == 0)
+ return META_FRAME_TYPE_ATTACHED;
+ else
+ return META_FRAME_TYPE_LAST;
+}
+
static void
parse_toplevel_element (GMarkupParseContext *context,
const gchar *element_name,
diff --git a/libmetacity/meta-theme.c b/libmetacity/meta-theme.c
index 57ea281..69c37d1 100644
--- a/libmetacity/meta-theme.c
+++ b/libmetacity/meta-theme.c
@@ -542,27 +542,6 @@ meta_theme_set_titlebar_font (MetaTheme *theme,
g_hash_table_remove_all (theme->title_heights);
}
-MetaFrameType
-meta_frame_type_from_string (const gchar *str)
-{
- if (strcmp ("normal", str) == 0)
- return META_FRAME_TYPE_NORMAL;
- else if (strcmp ("dialog", str) == 0)
- return META_FRAME_TYPE_DIALOG;
- else if (strcmp ("modal_dialog", str) == 0)
- return META_FRAME_TYPE_MODAL_DIALOG;
- else if (strcmp ("utility", str) == 0)
- return META_FRAME_TYPE_UTILITY;
- else if (strcmp ("menu", str) == 0)
- return META_FRAME_TYPE_MENU;
- else if (strcmp ("border", str) == 0)
- return META_FRAME_TYPE_BORDER;
- else if (strcmp ("attached", str) == 0)
- return META_FRAME_TYPE_ATTACHED;
- else
- return META_FRAME_TYPE_LAST;
-}
-
void
meta_theme_get_frame_borders (MetaTheme *theme,
const gchar *variant,
diff --git a/libmetacity/meta-theme.h b/libmetacity/meta-theme.h
index b06370d..9074db4 100644
--- a/libmetacity/meta-theme.h
+++ b/libmetacity/meta-theme.h
@@ -160,8 +160,6 @@ void meta_theme_set_composited (MetaTheme *theme,
void meta_theme_set_titlebar_font (MetaTheme *theme,
const PangoFontDescription *titlebar_font);
-MetaFrameType meta_frame_type_from_string (const gchar *str);
-
void meta_theme_get_frame_borders (MetaTheme *theme,
const gchar *variant,
MetaFrameType type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]