summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-03 22:23:54 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-03 23:05:29 +0200
commit2aec0aceb5302efd8aec7814c732f362569acd8a (patch)
treef4e17bbc7430009148ea5833faf6defd5ef96d20 /src/ui
parent1e87976ef41b277ee7fa39f088df92354d52250b (diff)
downloadmetacity-2aec0aceb5302efd8aec7814c732f362569acd8a.tar.gz
theme: move meta_frame_type_from_string to libmetacity
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/theme.c21
-rw-r--r--src/ui/theme.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b1eec051..2d9b7428 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -1713,24 +1713,3 @@ meta_theme_calc_geometry (MetaTheme *theme,
fgeom,
theme);
}
-
-MetaFrameType
-meta_frame_type_from_string (const char *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;
-}
diff --git a/src/ui/theme.h b/src/ui/theme.h
index 0e844d5c..4aad669c 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -65,6 +65,4 @@ void meta_theme_calc_geometry (MetaTheme *theme,
const MetaButtonLayout *button_layout,
MetaFrameGeometry *fgeom);
-MetaFrameType meta_frame_type_from_string (const char *str);
-
#endif