diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-24 22:57:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-25 11:57:37 -0400 |
commit | 2ff3e3d1e4319bda2d0847a06bf0ec2a27c7e4ae (patch) | |
tree | 3e7ef9b85833dc0b1bee9409a784d56d1a7ff965 /gtk/gtkscale.c | |
parent | 73f4f518b88fa9145fc9ef71629d375aa1e702f0 (diff) | |
download | gtk+-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/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 5e649eeaa2..3c8056e635 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -149,23 +149,23 @@ struct _GtkScalePrivate int digits; + guint draw_value : 1; + guint value_pos : 2; + GtkScaleFormatValueFunc format_value_func; gpointer format_value_func_user_data; GDestroyNotify format_value_func_destroy_notify; - - guint draw_value : 1; - guint value_pos : 2; }; struct _GtkScaleMark { double value; int stop_position; + GtkPositionType position; /* always GTK_POS_TOP or GTK_POS_BOTTOM */ char *markup; GtkWidget *label_widget; GtkWidget *indicator_widget; GtkWidget *widget; - GtkPositionType position; /* always GTK_POS_TOP or GTK_POS_BOTTOM */ }; enum { |