summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-01 14:25:44 +0200
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-07 17:32:45 +0100
commita22988411e1f6601980a0cd9a9ecce93e29f7c6b (patch)
treef228edd5871b2c390dc52913ab783b976a26cf53 /src
parent4b52bb815739b5e73d028aebde9d22e81dac85dd (diff)
mcd-account: use proper gboolean rather than 1 bit to store boolean properties
It doesn't make sense to not use the boolean type provided by our framework and using 1 bit variable introduces weird corner case when being casted with gboolean. https://bugs.freedesktop.org/show_bug.cgi?id=40545 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/mcd-account.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c
index 1f3fff70..7935a36e 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -168,13 +168,13 @@ struct _McdAccountPrivate
*/
GError *invalid_reason;
- guint connect_automatically : 1;
- guint enabled : 1;
- guint loaded : 1;
- guint has_been_online : 1;
- guint removed : 1;
- guint always_on : 1;
- guint changing_presence : 1;
+ gboolean connect_automatically;
+ gboolean enabled;
+ gboolean loaded;
+ gboolean has_been_online;
+ gboolean removed;
+ gboolean always_on;
+ gboolean changing_presence;
gboolean hidden;
gboolean always_dispatch;