diff options
author | Alberto Ruiz <aruiz@gnome.org> | 2011-07-25 17:46:50 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-08-15 18:57:56 -0400 |
commit | bf8ad994d4fa37a54924e3aa2d5c30c5a5607c92 (patch) | |
tree | da17893c1e409d2c4e1c10f4b6eebe9adf12a74a /gtk/gtkfontchooser.c | |
parent | 26fb5c90b15a78f2aaa442ec19948535ee178929 (diff) | |
download | gtk+-bf8ad994d4fa37a54924e3aa2d5c30c5a5607c92.tar.gz |
GtkFontChooser: Fixed coding style wrt spacing around operators
Diffstat (limited to 'gtk/gtkfontchooser.c')
-rw-r--r-- | gtk/gtkfontchooser.c | 10 |
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]); |