diff options
Diffstat (limited to 'libmetacity')
-rw-r--r-- | libmetacity/meta-theme-metacity.c | 21 | ||||
-rw-r--r-- | libmetacity/meta-theme.c | 21 | ||||
-rw-r--r-- | 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 f91ace12..06aadc0f 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 57ea2816..69c37d15 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 b06370db..9074db41 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, |