diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-08 14:24:25 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-08 14:24:25 +0000 |
commit | 070688006ac7cea1639f38c0bb270c191f7dc38f (patch) | |
tree | 258fbf88a6f28a86bef83553e2430e950d972793 /src/trg-general-panel.c | |
parent | f74c398577f66488cf5c420f5df318ab801117cc (diff) |
a torrent add dialog based off Transmission GTK (different bencode+action implementation) which allows you to set file priorities, torrent priority, directory in advance. probably needs a little more work.
Diffstat (limited to 'src/trg-general-panel.c')
-rw-r--r-- | src/trg-general-panel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/trg-general-panel.c b/src/trg-general-panel.c index 91274bf..ec60cf9 100644 --- a/src/trg-general-panel.c +++ b/src/trg-general-panel.c @@ -134,9 +134,7 @@ void trg_general_panel_update(TrgGeneralPanel * panel, JsonObject * t, gtk_label_set_text(GTK_LABEL(priv->gen_downloaded_label), buf); if (uploaded > 0 && downloaded > 0) { - trg_strlratio(buf, - (double) uploaded / - (double) downloaded); + trg_strlratio(buf, (double) uploaded / (double) downloaded); gtk_label_set_text(GTK_LABEL(priv->gen_ratio_label), buf); } else { gtk_label_set_text(GTK_LABEL(priv->gen_ratio_label), _("N/A")); @@ -165,8 +163,10 @@ void trg_general_panel_update(TrgGeneralPanel * panel, JsonObject * t, gtk_label_set_markup(GTK_LABEL(priv->gen_error_label), markup); g_free(markup); - markup = g_markup_printf_escaped("<span font_weight=\"bold\" fgcolor=\"red\">%s</span>", - _("Error")); + markup = + g_markup_printf_escaped + ("<span font_weight=\"bold\" fgcolor=\"red\">%s</span>", + _("Error")); gtk_label_set_markup(keyLabel, markup); g_free(markup); } else { |