[gdm/wip/slave-display-merger: 16/30] display: use bitfield for booleans in priv structure



commit bf93c816de0790d57286667517479bf5b795e9ee
Author: Ray Strode <rstrode redhat com>
Date:   Thu Jan 29 15:58:16 2015 -0500

    display: use bitfield for booleans in priv structure
    
    We're going to be adding more than a couple, so
    switch to a bitfield.

 daemon/gdm-display.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index cab096b..b763851 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -64,7 +64,6 @@ struct GdmDisplayPrivate
         gsize                 x11_cookie_size;
         GdmDisplayAccessFile *access_file;
 
-        gboolean              is_local;
         guint                 finish_idle_id;
 
         GdmSlave             *slave;
@@ -74,8 +73,9 @@ struct GdmDisplayPrivate
         GdmDBusDisplay       *display_skeleton;
         GDBusObjectSkeleton  *object_skeleton;
 
-        gboolean              is_initial;
-        gboolean              allow_timed_login;
+        guint                 is_local : 1;
+        guint                 is_initial : 1;
+        guint                 allow_timed_login : 1;
 };
 
 enum {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]