Commit 7952feb4 authored by Owen W. Taylor's avatar Owen W. Taylor
Browse files

Export meta_frame_type_to_string()

Frame types will form the bases of shadow classes, which are strings,
so export the to-string function so that we can do the conversion
parent 52aebdf2
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include <glib.h> #include <glib.h>
#include <glib-object.h> #include <glib-object.h>
#include "common.h"
gboolean meta_is_verbose (void); gboolean meta_is_verbose (void);
void meta_set_verbose (gboolean setting); void meta_set_verbose (gboolean setting);
gboolean meta_is_debugging (void); gboolean meta_is_debugging (void);
...@@ -91,6 +93,7 @@ guint meta_unsigned_long_hash (gconstpointer v); ...@@ -91,6 +93,7 @@ guint meta_unsigned_long_hash (gconstpointer v);
void meta_print_backtrace (void); void meta_print_backtrace (void);
const char* meta_frame_type_to_string (MetaFrameType type);
const char* meta_gravity_to_string (int gravity); const char* meta_gravity_to_string (int gravity);
#include <libintl.h> #include <libintl.h>
...@@ -1189,7 +1189,6 @@ const char* meta_frame_resize_to_string (MetaFrameResize r ...@@ -1189,7 +1189,6 @@ const char* meta_frame_resize_to_string (MetaFrameResize r
MetaFrameFocus meta_frame_focus_from_string (const char *str); MetaFrameFocus meta_frame_focus_from_string (const char *str);
const char* meta_frame_focus_to_string (MetaFrameFocus focus); const char* meta_frame_focus_to_string (MetaFrameFocus focus);
MetaFrameType meta_frame_type_from_string (const char *str); MetaFrameType meta_frame_type_from_string (const char *str);
const char* meta_frame_type_to_string (MetaFrameType type);
MetaGradientType meta_gradient_type_from_string (const char *str); MetaGradientType meta_gradient_type_from_string (const char *str);
const char* meta_gradient_type_to_string (MetaGradientType type); const char* meta_gradient_type_to_string (MetaGradientType type);
GtkStateType meta_gtk_state_from_string (const char *str); GtkStateType meta_gtk_state_from_string (const char *str);
...@@ -6017,6 +6017,14 @@ meta_frame_type_from_string (const char *str) ...@@ -6017,6 +6017,14 @@ meta_frame_type_from_string (const char *str)
} }
* meta_frame_type_to_string:
* Converts a frame type enum value to the name string that would
* appear in the theme definition file.
* Return value: the string value
const char* const char*
meta_frame_type_to_string (MetaFrameType type) meta_frame_type_to_string (MetaFrameType type)
{ {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment