projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c7ea78
)
label: Rearrange struct members
author
Mohammed Sadiq
<sadiq@sadiqpk.org>
Fri, 11 May 2018 06:28:34 +0000
(11:58 +0530)
committer
Mohammed Sadiq
<sadiq@sadiqpk.org>
Fri, 11 May 2018 10:40:03 +0000
(16:10 +0530)
Rearranging so can save us 8 bytes per GtkLabel
on 32/64 bit aligned memory.
Not a big count, but we get it for free.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index a3ebbe0af5c6cf5cdf4a5678bf0a8afabf5f77a0..136abcba43e0fb17a7602c569c4b476d630df9be 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-270,11
+270,11
@@
struct _GtkLabelPrivate
guint jtype : 2;
guint wrap : 1;
guint use_underline : 1;
- guint use_markup : 1;
guint ellipsize : 3;
+ guint use_markup : 1;
+ guint wrap_mode : 3;
guint single_line_mode : 1;
guint in_click : 1;
- guint wrap_mode : 3;
guint pattern_set : 1;
guint track_links : 1;