[gtk+] GtkFontChooser: Fixed coding style wrt spacing around operators



commit bf8ad994d4fa37a54924e3aa2d5c30c5a5607c92
Author: Alberto Ruiz <aruiz gnome org>
Date:   Mon Jul 25 17:46:50 2011 +0100

    GtkFontChooser: Fixed coding style wrt spacing around operators

 gtk/gtkfontchooser.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 6575663..122188a 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -373,7 +373,7 @@ set_range_marks (GtkFontChooserPrivate *priv,
   gint i;
   gdouble value;
 
-  if (length<2)
+  if (length < 2)
     {
       sizes = (gint*)font_sizes;
       length = FONT_SIZES_LENGTH;
@@ -392,7 +392,7 @@ set_range_marks (GtkFontChooserPrivate *priv,
   else if (value < (gdouble) sizes[0])
     gtk_adjustment_set_value (adj, (gdouble) sizes[0]);
   
-  for (i=0; i<length; i++)
+  for (i = 0; i < length; i++)
     gtk_scale_add_mark (GTK_SCALE (size_slider),
                         (gdouble) sizes[i],
                         GTK_POS_BOTTOM, NULL);
@@ -448,7 +448,7 @@ cursor_changed_cb (GtkTreeView *treeview, gpointer data)
 
   pango_font_face_list_sizes (face, &sizes, &n_sizes);
   /* It seems not many fonts actually have a sane set of sizes */
-  for (i=0; i<n_sizes; i++)
+  for (i = 0; i < n_sizes; i++)
     sizes[i] = sizes[i] / PANGO_SCALE;
   
   set_range_marks (fontchooser->priv, fontchooser->priv->size_slider, sizes, n_sizes);
@@ -679,7 +679,7 @@ populate_list (GtkFontChooser *fontchooser, GtkTreeView* treeview, GtkListStore*
                                                                       GTK_STATE_NORMAL);
 
   /* Iterate over families and faces */
-  for (i=0; i<n_families; i++)
+  for (i = 0; i < n_families; i++)
     {
       GtkTreeIter     iter;
       PangoFontFace **faces;
@@ -689,7 +689,7 @@ populate_list (GtkFontChooser *fontchooser, GtkTreeView* treeview, GtkListStore*
 
       pango_font_family_list_faces (families[i], &faces, &n_faces);
       
-      for (j=0; j<n_faces; j++)
+      for (j = 0; j < n_faces; j++)
         {
           PangoFontDescription *pango_desc = pango_font_face_describe (faces[j]);
           const gchar *face_name = pango_font_face_get_face_name (faces[j]);



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