mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
Clean up clutter-private.h
Move macros at the top, and clean up whitespace.
This commit is contained in:
parent
cdd9fd1af1
commit
7e42da123f
@ -76,6 +76,20 @@ typedef struct _ClutterMainContext ClutterMainContext;
|
|||||||
#define CLUTTER_ACTOR_IN_RELAYOUT(a) ((CLUTTER_PRIVATE_FLAGS (a) & CLUTTER_IN_RELAYOUT) != FALSE)
|
#define CLUTTER_ACTOR_IN_RELAYOUT(a) ((CLUTTER_PRIVATE_FLAGS (a) & CLUTTER_IN_RELAYOUT) != FALSE)
|
||||||
#define CLUTTER_STAGE_IN_RESIZE(a) ((CLUTTER_PRIVATE_FLAGS (a) & CLUTTER_IN_RESIZE) != FALSE)
|
#define CLUTTER_STAGE_IN_RESIZE(a) ((CLUTTER_PRIVATE_FLAGS (a) & CLUTTER_IN_RESIZE) != FALSE)
|
||||||
|
|
||||||
|
#define CLUTTER_PARAM_READABLE (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)
|
||||||
|
#define CLUTTER_PARAM_WRITABLE (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)
|
||||||
|
#define CLUTTER_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)
|
||||||
|
|
||||||
|
/* automagic interning of a static string */
|
||||||
|
#define I_(str) (g_intern_static_string ((str)))
|
||||||
|
|
||||||
|
/* mark all properties under the "Property" context */
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
#define P_(String) (_clutter_gettext ((String)))
|
||||||
|
#else
|
||||||
|
#define P_(String) (String)
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CLUTTER_ACTOR_UNUSED_FLAG = 0,
|
CLUTTER_ACTOR_UNUSED_FLAG = 0,
|
||||||
|
|
||||||
@ -181,20 +195,6 @@ ClutterActor * _clutter_context_peek_shader_stack (void);
|
|||||||
guint32 _clutter_context_acquire_id (gpointer key);
|
guint32 _clutter_context_acquire_id (gpointer key);
|
||||||
void _clutter_context_release_id (guint32 id_);
|
void _clutter_context_release_id (guint32 id_);
|
||||||
|
|
||||||
#define CLUTTER_PARAM_READABLE (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)
|
|
||||||
#define CLUTTER_PARAM_WRITABLE (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)
|
|
||||||
#define CLUTTER_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)
|
|
||||||
|
|
||||||
/* automagic interning of a static string */
|
|
||||||
#define I_(str) (g_intern_static_string ((str)))
|
|
||||||
|
|
||||||
/* mark all properties under the "Property" context */
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
#define P_(String) (_clutter_gettext ((String)))
|
|
||||||
#else
|
|
||||||
#define P_(String) (String)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_CONST_RETURN gchar *_clutter_gettext (const gchar *str);
|
G_CONST_RETURN gchar *_clutter_gettext (const gchar *str);
|
||||||
|
|
||||||
gboolean _clutter_feature_init (GError **error);
|
gboolean _clutter_feature_init (GError **error);
|
||||||
|
Loading…
Reference in New Issue
Block a user