summaryrefslogtreecommitdiff
path: root/src/trg-general-panel.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-07 20:39:04 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-07 20:39:04 +0000
commit4073ac25ea4f0b38bef0ad09664e4e66e6fe7f00 (patch)
tree626f8923ef9ad83f2d47b6dd4f6b3994ca563afd /src/trg-general-panel.c
parentecbd6bbb7423bc9b6f329f937bf740b7dc87598d (diff)
support proxy configuration using libproxy (optional). might add a getenv() fallback sometime.
Diffstat (limited to 'src/trg-general-panel.c')
-rw-r--r--src/trg-general-panel.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/trg-general-panel.c b/src/trg-general-panel.c
index c4edf60..c0165fd 100644
--- a/src/trg-general-panel.c
+++ b/src/trg-general-panel.c
@@ -148,14 +148,12 @@ void trg_general_panel_update(TrgGeneralPanel * panel, JsonObject * t,
gchar *markup =
g_markup_printf_escaped("<span fgcolor=\"red\">%s</span>",
errorStr);
- gtk_label_set_markup(GTK_LABEL(priv->gen_error_label),
- markup);
+ gtk_label_set_markup(GTK_LABEL(priv->gen_error_label), markup);
g_free(markup);
markup = g_markup_printf_escaped("<span fgcolor=\"red\">%s</span>",
- _("Error"));
- gtk_label_set_markup(keyLabel,
- markup);
+ _("Error"));
+ gtk_label_set_markup(keyLabel, markup);
g_free(markup);
} else {
gtk_label_clear(GTK_LABEL(priv->gen_error_label));
@@ -189,7 +187,8 @@ static GtkLabel *trg_general_panel_add_label(TrgGeneralPanel * fixed,
gchar *keyMarkup;
keyLabel = gtk_label_new(NULL);
- keyMarkup = g_markup_printf_escaped(strlen(key) > 0 ? "<b>%s:</b>" : "", key);
+ keyMarkup =
+ g_markup_printf_escaped(strlen(key) > 0 ? "<b>%s:</b>" : "", key);
gtk_label_set_markup(GTK_LABEL(keyLabel), keyMarkup);
g_free(keyMarkup);
gtk_fixed_put(GTK_FIXED(fixed), keyLabel, 10 + (col * 280),
@@ -213,7 +212,8 @@ static void trg_general_panel_init(TrgGeneralPanel * self)
priv->gen_size_label =
trg_general_panel_add_label(self, _("Size"), 0, 1);
- priv->gen_eta_label = trg_general_panel_add_label(self, _("ETA"), 1, 1);
+ priv->gen_eta_label =
+ trg_general_panel_add_label(self, _("ETA"), 1, 1);
priv->gen_completed_label =
trg_general_panel_add_label(self, _("Completed"), 2, 1);