summaryrefslogtreecommitdiff
path: root/src/trg-remote-prefs-dialog.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-remote-prefs-dialog.c
parentecbd6bbb7423bc9b6f329f937bf740b7dc87598d (diff)
support proxy configuration using libproxy (optional). might add a getenv() fallback sometime.
Diffstat (limited to 'src/trg-remote-prefs-dialog.c')
-rw-r--r--src/trg-remote-prefs-dialog.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c
index 1536293..e1717c2 100644
--- a/src/trg-remote-prefs-dialog.c
+++ b/src/trg-remote-prefs-dialog.c
@@ -302,7 +302,8 @@ static void on_port_tested(JsonObject * response, int status,
TrgRemotePrefsDialogPrivate *priv =
TRG_REMOTE_PREFS_DIALOG_GET_PRIVATE(data);
- gtk_button_set_label(GTK_BUTTON(priv->port_test_button), _("Retest"));
+ gtk_button_set_label(GTK_BUTTON(priv->port_test_button),
+ _("Retest"));
gtk_widget_set_sensitive(priv->port_test_button, TRUE);
if (status == CURLE_OK) {
@@ -311,10 +312,12 @@ static void on_port_tested(JsonObject * response, int status,
"port-is-open");
if (isOpen)
gtk_label_set_markup(GTK_LABEL(priv->port_test_label),
- _("Port is <span font_weight=\"bold\" fgcolor=\"darkgreen\">open</span>"));
+ _
+ ("Port is <span font_weight=\"bold\" fgcolor=\"darkgreen\">open</span>"));
else
gtk_label_set_markup(GTK_LABEL(priv->port_test_label),
- _("Port is <span font_weight=\"bold\" fgcolor=\"red\">closed</span>"));
+ _
+ ("Port is <span font_weight=\"bold\" fgcolor=\"red\">closed</span>"));
} else {
trg_error_dialog(GTK_WINDOW(data), status, response);
}
@@ -544,7 +547,8 @@ static GtkWidget *trg_rprefs_generalPage(TrgRemotePrefsDialog * win,
w = priv->trash_original_torrent_files_check =
hig_workarea_add_wide_checkbutton(t, &row,
- _("Trash original torrent files"),
+ _
+ ("Trash original torrent files"),
session_get_trash_original_torrent_files
(s));
widget_set_json_key(w, SGET_TRASH_ORIGINAL_TORRENT_FILES);