[gtk] icontheme: Use a bit field in AsyncSymbolicData
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] icontheme: Use a bit field in AsyncSymbolicData
- Date: Thu, 8 Nov 2018 04:50:55 +0000 (UTC)
commit 2834b38d2c85a25d60c7975ad15263fdd3de3ecb
Author: Timm Bäder <tbaeder redhat com>
Date: Mon Oct 29 11:26:05 2018 +0100
icontheme: Use a bit field in AsyncSymbolicData
176 -> 144 bytes
gtk/gtkicontheme.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 95e8e7f080..5b1d3c6260 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -4519,16 +4519,16 @@ gtk_icon_info_load_symbolic_for_context (GtkIconInfo *icon_info,
}
typedef struct {
- gboolean is_symbolic;
+ guint is_symbolic : 1;
+ guint success_color_set : 1;
+ guint warning_color_set : 1;
+ guint error_color_set : 1;
+ guint fg_set : 1;
GtkIconInfo *dup;
GdkRGBA fg;
- gboolean fg_set;
GdkRGBA success_color;
- gboolean success_color_set;
GdkRGBA warning_color;
- gboolean warning_color_set;
GdkRGBA error_color;
- gboolean error_color_set;
} AsyncSymbolicData;
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]