summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@gnome.org>2011-07-25 17:46:50 +0100
committerAlberto Ruiz <aruiz@gnome.org>2011-07-25 17:46:50 +0100
commit935a3e66df66ae84645fc54f111a9555a029f157 (patch)
tree2268132d20829a39f5ee2d85b785e1a3ac4f5ab3
parentb7682cfddbc5ef39d4b63dbf652f7aa93762cecc (diff)
downloadgtk+-935a3e66df66ae84645fc54f111a9555a029f157.tar.gz
GtkFontChooser: Fixed coding style wrt spacing around operators
-rw-r--r--gtk/gtkfontchooser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 6575663c27..122188a702 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]);