[notification-daemon] Save some RAM in NotifyTimeout



commit c43d398b26111ca91c5a703858616edd4b7c3bc2
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 24 00:08:21 2010 -0400

    Save some RAM in NotifyTimeout
    
    By using a bit, rather than a byte for gbooleans.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622556

 src/daemon/daemon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index f4066ce..e621a76 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -84,11 +84,11 @@ typedef struct
         NotifyDaemon   *daemon;
         GTimeVal        expiration;
         GTimeVal        paused_diff;
-        gboolean        has_timeout;
-        gboolean        paused;
         guint           id;
         GtkWindow      *nw;
         Window          src_window_xid;
+        guint           has_timeout : 1;
+        guint           paused : 1;
 } NotifyTimeout;
 
 typedef struct



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