diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-03-10 14:49:46 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-03-10 18:35:49 +0200 |
commit | 288c05ee05046b781ce0b5809177d4eb8d69eb5c (patch) | |
tree | 0a97bed555a0614286e1c5ca1affe1244040ac1c /src/include | |
parent | 7f0d494efd807879fc52896579b1971ba3c36117 (diff) | |
download | metacity-288c05ee05046b781ce0b5809177d4eb8d69eb5c.tar.gz |
util: rename MetaDebugTopic to MetaDebugFlags
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/util.h | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/src/include/util.h b/src/include/util.h index c5c05db0..cbc51688 100644 --- a/src/include/util.h +++ b/src/include/util.h @@ -24,7 +24,31 @@ #define META_UTIL_H #include <glib.h> -#include <glib-object.h> + +G_BEGIN_DECLS + +typedef enum +{ + META_DEBUG_FOCUS = 1 << 0, + META_DEBUG_WORKAREA = 1 << 1, + META_DEBUG_STACK = 1 << 2, + META_DEBUG_SM = 1 << 3, + META_DEBUG_EVENTS = 1 << 4, + META_DEBUG_WINDOW_STATE = 1 << 5, + META_DEBUG_WINDOW_OPS = 1 << 6, + META_DEBUG_GEOMETRY = 1 << 7, + META_DEBUG_PLACEMENT = 1 << 8, + META_DEBUG_PING = 1 << 9, + META_DEBUG_XINERAMA = 1 << 10, + META_DEBUG_KEYBINDINGS = 1 << 11, + META_DEBUG_SYNC = 1 << 12, + META_DEBUG_STARTUP = 1 << 13, + META_DEBUG_PREFS = 1 << 14, + META_DEBUG_GROUPS = 1 << 15, + META_DEBUG_RESIZING = 1 << 16, + META_DEBUG_SHAPES = 1 << 17, + META_DEBUG_EDGE_RESISTANCE = 1 << 18 +} MetaDebugFlags; gboolean meta_is_verbose (void); void meta_set_verbose (gboolean setting); @@ -38,30 +62,7 @@ void meta_set_replace_current_wm (gboolean setting); void meta_verbose (const char *format, ...) G_GNUC_PRINTF (1, 2); -typedef enum -{ - META_DEBUG_FOCUS = 1 << 0, - META_DEBUG_WORKAREA = 1 << 1, - META_DEBUG_STACK = 1 << 2, - META_DEBUG_SM = 1 << 4, - META_DEBUG_EVENTS = 1 << 5, - META_DEBUG_WINDOW_STATE = 1 << 6, - META_DEBUG_WINDOW_OPS = 1 << 7, - META_DEBUG_GEOMETRY = 1 << 8, - META_DEBUG_PLACEMENT = 1 << 9, - META_DEBUG_PING = 1 << 10, - META_DEBUG_XINERAMA = 1 << 11, - META_DEBUG_KEYBINDINGS = 1 << 12, - META_DEBUG_SYNC = 1 << 13, - META_DEBUG_STARTUP = 1 << 15, - META_DEBUG_PREFS = 1 << 16, - META_DEBUG_GROUPS = 1 << 17, - META_DEBUG_RESIZING = 1 << 18, - META_DEBUG_SHAPES = 1 << 19, - META_DEBUG_EDGE_RESISTANCE = 1 << 21 -} MetaDebugTopic; - -void meta_topic (MetaDebugTopic topic, +void meta_topic (MetaDebugFlags topic, const char *format, ...) G_GNUC_PRINTF (2, 3); @@ -92,4 +93,6 @@ GPid meta_show_dialog (const char *type, GSList *columns, GSList *entries); -#endif /* META_UTIL_H */ +G_END_DECLS + +#endif |