[gthumb] file sotre: declare booleans as bit fields to save some space
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] file sotre: declare booleans as bit fields to save some space
- Date: Mon, 5 Dec 2011 19:59:32 +0000 (UTC)
commit e96eafea0fb47bc4c4e93c332ed1e22e82132c8c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 5 11:16:03 2011 +0100
file sotre: declare booleans as bit fields to save some space
gthumb/gth-file-store.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 403ac60..ddb3075 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -47,14 +47,14 @@ typedef struct {
GthFileData *file_data;
GdkPixbuf *thumbnail;
- gboolean is_icon;
+ gboolean is_icon : 1;
/*< private >*/
guint pos;
guint abs_pos;
- gboolean visible;
- gboolean changed;
+ gboolean visible : 1;
+ gboolean changed : 1;
} GthFileRow;
@@ -70,8 +70,8 @@ struct _GthFileStorePrivate
GthTest *filter;
GList *queue;
GthFileDataCompFunc cmp_func;
- gboolean inverse_sort;
- gboolean update_filter;
+ gboolean inverse_sort : 1;
+ gboolean update_filter : 1;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]