diff options
author | Xan Lopez <xan@igalia.com> | 2012-08-26 20:50:41 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-08-26 20:50:41 +0800 |
commit | 575ff3bfc8c95e1fcb70b5aedf2809ad2f563afc (patch) | |
tree | eb48b37313619211321082b4c39e6403b18d840c | |
parent | 5b9ba4eaa1f6b20b7283028f0371d3bf776399f8 (diff) | |
download | gsoc2013-epiphany-575ff3bfc8c95e1fcb70b5aedf2809ad2f563afc.tar.gz gsoc2013-epiphany-575ff3bfc8c95e1fcb70b5aedf2809ad2f563afc.tar.zst gsoc2013-epiphany-575ff3bfc8c95e1fcb70b5aedf2809ad2f563afc.zip |
ephy-embed-prefs: tiny cosmetic fixes
-rw-r--r-- | embed/ephy-embed-prefs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index 67c118bb1..554d6d5cd 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -294,7 +294,7 @@ build_accept_languages_header (GArray *languages) g_return_val_if_fail (languages != NULL, NULL); - /* Calculate deltas for the quality values */ + /* Calculate deltas for the quality values. */ if (languages->len < 10) delta = 10; else if (languages->len < 20) @@ -302,18 +302,18 @@ build_accept_languages_header (GArray *languages) else delta = 1; - /* Set quality values for each language */ - langs = (gchar **) languages->data; + /* Set quality values for each language. */ + langs = (gchar **)languages->data; for (i = 0; langs[i] != NULL; i++) { - gchar *lang = (gchar *) langs[i]; + gchar *lang = (gchar *)langs[i]; gint quality = 100 - i * delta; if (quality > 0 && quality < 100) { gchar buf[8]; - g_ascii_formatd (buf, 8, "%.2f", quality/100.0); + g_ascii_formatd (buf, 8, "%.2f", quality / 100.0); langs[i] = g_strdup_printf ("%s;q=%s", lang, buf); } else { - /* Just dup the string in this case */ + /* Just dup the string in this case. */ langs[i] = g_strdup (lang); } g_free (lang); |