mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Use a consistent style for enum braces
https://gitlab.gnome.org/GNOME/mutter/merge_requests/361
This commit is contained in:

committed by
Niels De Graef

parent
ca0b6fc3ac
commit
1c6ea5d1db
@ -26,7 +26,8 @@
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (MetaBarrier, meta_barrier, G_TYPE_OBJECT)
|
||||
G_DEFINE_TYPE (MetaBarrierImpl, meta_barrier_impl, G_TYPE_OBJECT)
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_DISPLAY,
|
||||
@ -42,7 +43,8 @@ enum {
|
||||
|
||||
static GParamSpec *obj_props[PROP_LAST];
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
HIT,
|
||||
LEFT,
|
||||
|
||||
|
@ -51,7 +51,8 @@ struct _MetaCursorRendererPrivate
|
||||
};
|
||||
typedef struct _MetaCursorRendererPrivate MetaCursorRendererPrivate;
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
CURSOR_PAINTED,
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
@ -46,7 +46,8 @@
|
||||
|
||||
G_DEFINE_TYPE (MetaCursorTracker, meta_cursor_tracker, G_TYPE_OBJECT);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
CURSOR_CHANGED,
|
||||
CURSOR_MOVED,
|
||||
LAST_SIGNAL
|
||||
|
@ -27,7 +27,8 @@
|
||||
#ifndef META_DISPLAY_CONFIG_SHARED_H
|
||||
#define META_DISPLAY_CONFIG_SHARED_H
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_POWER_SAVE_UNSUPPORTED = -1,
|
||||
META_POWER_SAVE_ON = 0,
|
||||
META_POWER_SAVE_STANDBY,
|
||||
|
@ -41,7 +41,8 @@ struct _MetaInputMapper
|
||||
GHashTable *output_devices; /* MetaLogicalMonitor -> MetaMapperOutputInfo */
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_INPUT_CAP_TOUCH = 1 << 0, /* touch device, either touchscreen or tablet */
|
||||
META_INPUT_CAP_STYLUS = 1 << 1, /* tablet pen */
|
||||
META_INPUT_CAP_ERASER = 1 << 2, /* tablet eraser */
|
||||
@ -49,7 +50,8 @@ typedef enum {
|
||||
META_INPUT_CAP_CURSOR = 1 << 4 /* pointer-like device in tablets */
|
||||
} MetaInputCapabilityFlags;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_MATCH_IS_BUILTIN, /* Output is builtin, applies mainly to system-integrated devices */
|
||||
META_MATCH_SIZE, /* Size from input device and output match */
|
||||
META_MATCH_EDID_FULL, /* Full EDID model match, eg. "Cintiq 12WX" */
|
||||
@ -87,7 +89,8 @@ struct _DeviceCandidates
|
||||
MetaOutputMatchType best;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
DEVICE_MAPPED,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
@ -112,7 +112,8 @@ typedef void (*ConfigUintFunc) (MetaInputSettings *input_settings,
|
||||
ClutterInputDevice *device,
|
||||
guint value);
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_PAD_DIRECTION_NONE = -1,
|
||||
META_PAD_DIRECTION_UP = 0,
|
||||
META_PAD_DIRECTION_DOWN,
|
||||
|
@ -72,7 +72,8 @@ enum
|
||||
|
||||
static GParamSpec *obj_props[PROP_LAST];
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
MONITORS_CHANGED,
|
||||
MONITORS_CHANGED_INTERNAL,
|
||||
POWER_SAVE_MODE_CHANGED,
|
||||
|
@ -46,7 +46,8 @@ struct _MetaBarrierManagerNative
|
||||
GHashTable *barriers;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
/* The barrier is active and responsive to pointer motion. */
|
||||
META_BARRIER_STATE_ACTIVE,
|
||||
|
||||
|
@ -50,7 +50,8 @@ typedef struct _MetaInputSettingsX11Private
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (MetaInputSettingsX11, meta_input_settings_x11,
|
||||
META_TYPE_INPUT_SETTINGS)
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
SCROLL_METHOD_FIELD_2FG,
|
||||
SCROLL_METHOD_FIELD_EDGE,
|
||||
SCROLL_METHOD_FIELD_BUTTON,
|
||||
|
@ -25,7 +25,8 @@
|
||||
|
||||
CoglPipeline * meta_create_texture_pipeline (CoglTexture *texture);
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_TEXTURE_FLAGS_NONE = 0,
|
||||
META_TEXTURE_ALLOW_SLICING = 1 << 1
|
||||
} MetaTextureFlags;
|
||||
|
@ -97,7 +97,8 @@ enum
|
||||
PROP_VIGNETTE_BRIGHTNESS
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
CHANGED_BACKGROUND = 1 << 0,
|
||||
CHANGED_EFFECTS = 1 << 2,
|
||||
CHANGED_VIGNETTE_PARAMETERS = 1 << 3,
|
||||
@ -147,7 +148,8 @@ typedef enum {
|
||||
|
||||
typedef struct _MetaBackgroundLayer MetaBackgroundLayer;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
PIPELINE_VIGNETTE = (1 << 0),
|
||||
PIPELINE_BLEND = (1 << 1),
|
||||
PIPELINE_GRADIENT = (1 << 2),
|
||||
|
@ -588,7 +588,8 @@ ensure_color_texture (MetaBackground *self)
|
||||
}
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
PIPELINE_REPLACE,
|
||||
PIPELINE_ADD,
|
||||
PIPELINE_OVER_REVERSE,
|
||||
|
@ -33,7 +33,8 @@
|
||||
|
||||
#define DRAG_FAILED_DURATION 500
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_DRAG_ORIGIN = 1,
|
||||
PROP_DRAG_START_X,
|
||||
PROP_DRAG_START_Y
|
||||
|
@ -30,7 +30,8 @@
|
||||
#include "compositor/meta-feedback-actor-private.h"
|
||||
#include "core/display-private.h"
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_ANCHOR_X = 1,
|
||||
PROP_ANCHOR_Y
|
||||
};
|
||||
|
@ -26,7 +26,8 @@
|
||||
#include "meta/meta-plugin.h"
|
||||
#include "meta/types.h"
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_PLUGIN_NONE,
|
||||
META_PLUGIN_MINIMIZE,
|
||||
META_PLUGIN_MAP,
|
||||
|
@ -74,7 +74,8 @@ static gboolean meta_shaped_texture_get_paint_volume (ClutterActor *self, Clutte
|
||||
|
||||
static void cullable_iface_init (MetaCullableInterface *iface);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
SIZE_CHANGED,
|
||||
|
||||
LAST_SIGNAL,
|
||||
|
@ -41,7 +41,8 @@ G_DEFINE_ABSTRACT_TYPE_WITH_CODE (MetaSurfaceActor, meta_surface_actor, CLUTTER_
|
||||
G_ADD_PRIVATE (MetaSurfaceActor)
|
||||
G_IMPLEMENT_INTERFACE (META_TYPE_CULLABLE, cullable_iface_init));
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
REPAINT_SCHEDULED,
|
||||
SIZE_CHANGED,
|
||||
|
||||
|
@ -43,7 +43,8 @@
|
||||
#include "wayland/meta-wayland-surface.h"
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
INITIALLY_FROZEN,
|
||||
DRAWING_FIRST_FRAME,
|
||||
EMITTED_FIRST_FRAME
|
||||
|
@ -51,7 +51,8 @@ typedef struct _MetaUISlave MetaUISlave;
|
||||
|
||||
typedef struct MetaEdgeResistanceData MetaEdgeResistanceData;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_LIST_DEFAULT = 0, /* normal windows */
|
||||
META_LIST_INCLUDE_OVERRIDE_REDIRECT = 1 << 0, /* normal and O-R */
|
||||
META_LIST_SORTED = 1 << 1, /* sort list by mru */
|
||||
@ -70,14 +71,16 @@ typedef enum {
|
||||
*/
|
||||
#define N_IGNORED_CROSSING_SERIALS 10
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_TILE_NONE,
|
||||
META_TILE_LEFT,
|
||||
META_TILE_RIGHT,
|
||||
META_TILE_MAXIMIZED
|
||||
} MetaTileMode;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
/* Normal interaction where you're interacting with windows.
|
||||
* Events go to windows normally. */
|
||||
META_EVENT_ROUTE_NORMAL,
|
||||
|
@ -152,7 +152,8 @@ enum
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_FOCUS_WINDOW
|
||||
|
@ -46,7 +46,8 @@ struct _MetaCloseDialogDefault
|
||||
guint child_watch_id;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_WINDOW,
|
||||
N_PROPS
|
||||
|
@ -25,7 +25,8 @@
|
||||
#include "meta/meta-close-dialog.h"
|
||||
#include "meta/meta-enum-types.h"
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
RESPONSE,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
@ -39,7 +39,8 @@
|
||||
typedef struct _MetaGestureTracker MetaGestureTracker;
|
||||
typedef struct _MetaGestureTrackerClass MetaGestureTrackerClass;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_SEQUENCE_NONE,
|
||||
META_SEQUENCE_ACCEPTED,
|
||||
META_SEQUENCE_REJECTED,
|
||||
|
@ -69,7 +69,8 @@ struct _MetaGestureTrackerPrivate
|
||||
guint autodeny_timeout;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_AUTODENY_TIMEOUT,
|
||||
PROP_LAST,
|
||||
@ -77,7 +78,8 @@ enum {
|
||||
|
||||
static GParamSpec *obj_props[PROP_LAST];
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
STATE_CHANGED,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
@ -33,7 +33,8 @@ struct _MetaInhibitShortcutsDialogDefault
|
||||
MetaWindow *window;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_WINDOW,
|
||||
N_PROPS
|
||||
|
@ -46,7 +46,8 @@ enum
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_N_WORKSPACES
|
||||
|
@ -81,14 +81,16 @@
|
||||
|
||||
typedef union _MetaStackOp MetaStackOp;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
STACK_OP_ADD,
|
||||
STACK_OP_REMOVE,
|
||||
STACK_OP_RAISE_ABOVE,
|
||||
STACK_OP_LOWER_BELOW
|
||||
} MetaStackOpType;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
APPLY_DEFAULT = 0,
|
||||
/* Only do restacking that we can do locally without changing
|
||||
* the order of X windows. After we've received any stack
|
||||
|
@ -39,13 +39,15 @@
|
||||
*/
|
||||
#define STARTUP_TIMEOUT 15000000
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_DISPLAY,
|
||||
N_PROPS
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_SEQ_0,
|
||||
PROP_SEQ_ID,
|
||||
PROP_SEQ_TIMESTAMP,
|
||||
@ -57,7 +59,8 @@ enum {
|
||||
N_SEQ_PROPS
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
CHANGED,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
@ -48,14 +48,16 @@
|
||||
|
||||
typedef struct _MetaWindowQueue MetaWindowQueue;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_CLIENT_TYPE_UNKNOWN = 0,
|
||||
META_CLIENT_TYPE_APPLICATION = 1,
|
||||
META_CLIENT_TYPE_PAGER = 2,
|
||||
META_CLIENT_TYPE_MAX_RECOGNIZED = 2
|
||||
} MetaClientType;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_QUEUE_CALC_SHOWING = 1 << 0,
|
||||
META_QUEUE_MOVE_RESIZE = 1 << 1,
|
||||
META_QUEUE_UPDATE_ICON = 1 << 2,
|
||||
@ -63,7 +65,8 @@ typedef enum {
|
||||
|
||||
#define NUMBER_OF_QUEUES 3
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
_NET_WM_BYPASS_COMPOSITOR_HINT_AUTO = 0,
|
||||
_NET_WM_BYPASS_COMPOSITOR_HINT_ON = 1,
|
||||
_NET_WM_BYPASS_COMPOSITOR_HINT_OFF = 2,
|
||||
|
@ -183,7 +183,8 @@ static gboolean idle_update_icon (gpointer data);
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE (MetaWindow, meta_window, G_TYPE_OBJECT);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_TITLE,
|
||||
|
@ -57,7 +57,8 @@ static void free_this (gpointer candidate,
|
||||
|
||||
G_DEFINE_TYPE (MetaWorkspace, meta_workspace, G_TYPE_OBJECT);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_N_WINDOWS,
|
||||
|
@ -70,7 +70,8 @@ void meta_barrier_release (MetaBarrier *barrier,
|
||||
*/
|
||||
|
||||
/* Keep in sync with XFixes */
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_BARRIER_DIRECTION_POSITIVE_X = 1 << 0,
|
||||
META_BARRIER_DIRECTION_POSITIVE_Y = 1 << 1,
|
||||
META_BARRIER_DIRECTION_NEGATIVE_X = 1 << 2,
|
||||
|
@ -54,7 +54,8 @@ typedef enum
|
||||
META_COMP_EFFECT_NONE
|
||||
} MetaCompEffect;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_SIZE_CHANGE_MAXIMIZE,
|
||||
META_SIZE_CHANGE_UNMAXIMIZE,
|
||||
META_SIZE_CHANGE_FULLSCREEN,
|
||||
|
@ -367,7 +367,8 @@ meta_plugin_complete_display_change (MetaPlugin *plugin,
|
||||
*
|
||||
* Options that can be provided when calling meta_plugin_begin_modal().
|
||||
*/
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_MODAL_POINTER_ALREADY_GRABBED = 1 << 0,
|
||||
META_MODAL_KEYBOARD_ALREADY_GRABBED = 1 << 1
|
||||
} MetaModalOptions;
|
||||
|
@ -46,7 +46,8 @@ void meta_window_actor_sync_visibility (MetaWindowActor *self
|
||||
META_EXPORT
|
||||
gboolean meta_window_actor_is_destroyed (MetaWindowActor *self);
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_SHADOW_MODE_AUTO,
|
||||
META_SHADOW_MODE_FORCED_OFF,
|
||||
META_SHADOW_MODE_FORCED_ON,
|
||||
|
@ -198,7 +198,8 @@ GPid meta_show_dialog (const char *type,
|
||||
* @META_LATER_IDLE: call at a very low priority (can be blocked
|
||||
* by running animations or redrawing applications)
|
||||
**/
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_LATER_RESIZE,
|
||||
META_LATER_CALC_SHOWING,
|
||||
META_LATER_CHECK_FULLSCREEN,
|
||||
|
@ -86,7 +86,8 @@ typedef enum
|
||||
* @META_WINDOW_CLIENT_TYPE_WAYLAND: A Wayland based window
|
||||
* @META_WINDOW_CLIENT_TYPE_X11: An X11 based window
|
||||
*/
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
META_WINDOW_CLIENT_TYPE_WAYLAND,
|
||||
META_WINDOW_CLIENT_TYPE_X11
|
||||
} MetaWindowClientType;
|
||||
|
@ -71,7 +71,8 @@ static MetaFrameControl get_control (MetaUIFrame *frame,
|
||||
|
||||
G_DEFINE_TYPE (MetaFrames, meta_frames, GTK_TYPE_WINDOW);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
META_ACTION_CLICK,
|
||||
META_ACTION_RIGHT_CLICK,
|
||||
META_ACTION_MIDDLE_CLICK,
|
||||
|
@ -36,7 +36,8 @@
|
||||
#include "xdg-output-unstable-v1-server-protocol.h"
|
||||
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
OUTPUT_DESTROYED,
|
||||
|
||||
LAST_SIGNAL
|
||||
|
@ -74,7 +74,8 @@
|
||||
|
||||
#define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int (10)
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
FOCUS_SURFACE_CHANGED,
|
||||
|
||||
LAST_SIGNAL
|
||||
|
@ -57,7 +57,8 @@
|
||||
#include "wayland/meta-xwayland-private.h"
|
||||
#include "wayland/meta-xwayland-private.h"
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PENDING_STATE_SIGNAL_APPLIED,
|
||||
|
||||
PENDING_STATE_SIGNAL_LAST_SIGNAL
|
||||
@ -87,7 +88,8 @@ G_DEFINE_TYPE (MetaWaylandPendingState,
|
||||
meta_wayland_pending_state,
|
||||
G_TYPE_OBJECT);
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
SURFACE_DESTROY,
|
||||
SURFACE_UNMAPPED,
|
||||
SURFACE_CONFIGURE,
|
||||
|
@ -98,7 +98,8 @@ struct _MetaXWaylandSelection {
|
||||
MetaDndBridge dnd;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
ATOM_DND_SELECTION,
|
||||
ATOM_DND_AWARE,
|
||||
ATOM_DND_STATUS,
|
||||
|
@ -36,7 +36,8 @@
|
||||
#include "meta/main.h"
|
||||
#include "wayland/meta-wayland-actor-surface.h"
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
XWAYLAND_SURFACE_WINDOW_ASSOCIATED,
|
||||
|
||||
XWAYLAND_SURFACE_LAST_SIGNAL
|
||||
|
@ -28,7 +28,8 @@
|
||||
|
||||
#ifdef HAVE_STARTUP_NOTIFICATION
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
PROP_SEQ_X11_0,
|
||||
PROP_SEQ_X11_SEQ,
|
||||
N_SEQ_X11_PROPS
|
||||
|
@ -63,7 +63,8 @@ typedef void (* ReloadValueFunc) (MetaWindow *window,
|
||||
MetaPropValue *value,
|
||||
gboolean initial);
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
NONE = 0,
|
||||
LOAD_INIT = (1 << 0),
|
||||
INCLUDE_OR = (1 << 1),
|
||||
|
Reference in New Issue
Block a user