diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2016-08-02 21:16:14 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2016-08-02 21:16:14 +1200 |
commit | d27083ad14904bc9085bb9f23f40bbf3f0dee53f (patch) | |
tree | 088124099a6595bb06819ca84d13cea159daf869 /common | |
parent | 8f2387361b3e1e4b74b6b98fc0981758d364f5fd (diff) | |
download | lightdm-git-d27083ad14904bc9085bb9f23f40bbf3f0dee53f.tar.gz |
GObject property coding style fixes
Diffstat (limited to 'common')
-rw-r--r-- | common/user-list.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/common/user-list.c b/common/user-list.c index 3169853e..58cb0284 100644 --- a/common/user-list.c +++ b/common/user-list.c @@ -24,15 +24,13 @@ enum { - LIST_PROP_0, - LIST_PROP_NUM_USERS, + LIST_PROP_NUM_USERS = 1, LIST_PROP_USERS, }; enum { - USER_PROP_0, - USER_PROP_NAME, + USER_PROP_NAME = 1, USER_PROP_REAL_NAME, USER_PROP_DISPLAY_NAME, USER_PROP_HOME_DIRECTORY, @@ -1036,19 +1034,19 @@ common_user_list_init (CommonUserList *user_list) } static void -common_user_list_set_property (GObject *object, - guint prop_id, - const GValue *value, - GParamSpec *pspec) +common_user_list_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void common_user_list_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) + guint prop_id, + GValue *value, + GParamSpec *pspec) { CommonUserList *self; |