[gtk+] GtkProgressBarPrivate: Improve struct packing



commit e564d36deb82295274a24103143eb377ccb8deb4
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 12 12:40:30 2011 -0400

    GtkProgressBarPrivate: Improve struct packing
    
    Also remove the unused blocks and in_block members.

 gtk/gtkprogressbar.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index e431811..c4fb266 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -70,20 +70,17 @@
 
 struct _GtkProgressBarPrivate
 {
-  GtkOrientation orientation;
-
   gchar         *text;
 
   gdouble        fraction;
   gdouble        pulse_fraction;
 
-  guint          blocks;
-  gint           in_block;
-
   gint           activity_pos;
   guint          activity_blocks;
   guint          activity_step;
 
+  GtkOrientation orientation;
+
   guint          activity_dir  : 1;
   guint          activity_mode : 1;
   guint          ellipsize     : 3;
@@ -299,8 +296,6 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
                                             GtkProgressBarPrivate);
   priv = pbar->priv;
 
-  priv->blocks = 10;
-  priv->in_block = -1;
   priv->orientation = GTK_ORIENTATION_HORIZONTAL;
   priv->inverted = FALSE;
   priv->pulse_fraction = 0.1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]