From abd6b7affd8411db8a37a9d570c4748a93376eb3 Mon Sep 17 00:00:00 2001 From: Gwan-gyeong Mun Date: Sat, 10 Feb 2018 13:36:48 +0100 Subject: [PATCH] Change naming of GParmSpec enum id string for naming consistency GParamSpec enum string usually follows "PROP_" prefix and PROP_LAST is used for last PROP string. https://gitlab.gnome.org/GNOME/mutter/issues/28 Closes: #28 --- src/core/meta-gesture-tracker.c | 6 +++--- src/core/window.c | 6 +++--- src/core/workspace.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/meta-gesture-tracker.c b/src/core/meta-gesture-tracker.c index ce56c6284..e3b702f56 100644 --- a/src/core/meta-gesture-tracker.c +++ b/src/core/meta-gesture-tracker.c @@ -70,10 +70,10 @@ struct _MetaGestureTrackerPrivate enum { PROP_0, PROP_AUTODENY_TIMEOUT, - LAST_PROP, + PROP_LAST, }; -static GParamSpec *obj_props[LAST_PROP]; +static GParamSpec *obj_props[PROP_LAST]; enum { STATE_CHANGED, @@ -161,7 +161,7 @@ meta_gesture_tracker_class_init (MetaGestureTrackerClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); - g_object_class_install_properties (object_class, LAST_PROP, obj_props); + g_object_class_install_properties (object_class, PROP_LAST, obj_props); signals[STATE_CHANGED] = g_signal_new ("state-changed", diff --git a/src/core/window.c b/src/core/window.c index 62dc5a7bb..1a277ff12 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -180,10 +180,10 @@ enum { PROP_GTK_MENUBAR_OBJECT_PATH, PROP_ON_ALL_WORKSPACES, - LAST_PROP, + PROP_LAST, }; -static GParamSpec *obj_props[LAST_PROP]; +static GParamSpec *obj_props[PROP_LAST]; enum { @@ -589,7 +589,7 @@ meta_window_class_init (MetaWindowClass *klass) FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - g_object_class_install_properties (object_class, LAST_PROP, obj_props); + g_object_class_install_properties (object_class, PROP_LAST, obj_props); window_signals[WORKSPACE_CHANGED] = g_signal_new ("workspace-changed", diff --git a/src/core/workspace.c b/src/core/workspace.c index 7866c15d3..a964e6603 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -64,10 +64,10 @@ enum { PROP_N_WINDOWS, PROP_WORKSPACE_INDEX, - LAST_PROP, + PROP_LAST, }; -static GParamSpec *obj_props[LAST_PROP]; +static GParamSpec *obj_props[PROP_LAST]; enum { @@ -214,7 +214,7 @@ meta_workspace_class_init (MetaWorkspaceClass *klass) 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - g_object_class_install_properties (object_class, LAST_PROP, obj_props); + g_object_class_install_properties (object_class, PROP_LAST, obj_props); } static void