summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-24 22:57:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-25 11:57:37 -0400
commit2ff3e3d1e4319bda2d0847a06bf0ec2a27c7e4ae (patch)
tree3e7ef9b85833dc0b1bee9409a784d56d1a7ff965 /gtk/gtkswitch.c
parent73f4f518b88fa9145fc9ef71629d375aa1e702f0 (diff)
downloadgtk+-2ff3e3d1e4319bda2d0847a06bf0ec2a27c7e4ae.tar.gz
gtk: Improve struct packing in places
Plug some holes in our structs by rearranging a few fields. This is was done looking at pahole output.
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 1c3bdd27c3..040519506e 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -90,11 +90,12 @@ struct _GtkSwitch
double handle_pos;
guint tick_id;
- GtkProgressTracker tracker;
guint state : 1;
guint is_active : 1;
+ GtkProgressTracker tracker;
+
GtkWidget *on_image;
GtkWidget *off_image;
GtkWidget *slider;