summaryrefslogtreecommitdiff
path: root/src/trg-torrent-props-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-22 22:39:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-22 22:39:32 +0000
commitd3ca30c9ebe0e5b104d4dd89d4f998fad3a5d5ae (patch)
treea6121706b304a9432f8fb57d69b94fad97c11312 /src/trg-torrent-props-dialog.c
parent9280f0796483582fc421b2401fbe9c4be4425b4d (diff)
some support for "alternate" speed limits, including setting them to be turned on/off at a certain time range.
Diffstat (limited to 'src/trg-torrent-props-dialog.c')
-rw-r--r--src/trg-torrent-props-dialog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c
index 7fd262b..92c624c 100644
--- a/src/trg-torrent-props-dialog.c
+++ b/src/trg-torrent-props-dialog.c
@@ -187,7 +187,7 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win,
hig_workarea_add_row(t, &row, _("Torrent priority:"), w, NULL);
if (json_object_has_member(json, FIELD_QUEUE_POSITION)) {
- w = trg_json_widget_spin_new_int(&priv->widgets, json,
+ w = trg_json_widget_spin_new(&priv->widgets, json,
FIELD_QUEUE_POSITION, NULL, 0,
INT_MAX, 1);
hig_workarea_add_row(t, &row, _("Queue Position:"), w, w);
@@ -196,7 +196,7 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win,
tb = trg_json_widget_check_new(&priv->widgets, json,
FIELD_DOWNLOAD_LIMITED,
_("Limit download speed (Kbps)"), NULL);
- w = trg_json_widget_spin_new_int(&priv->widgets, json,
+ w = trg_json_widget_spin_new(&priv->widgets, json,
FIELD_DOWNLOAD_LIMIT, tb, 0, INT_MAX,
1);
hig_workarea_add_row_w(t, &row, tb, w, NULL);
@@ -204,7 +204,7 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win,
tb = trg_json_widget_check_new(&priv->widgets, json,
FIELD_UPLOAD_LIMITED,
_("Limit upload speed (Kbps)"), NULL);
- w = trg_json_widget_spin_new_int(&priv->widgets, json,
+ w = trg_json_widget_spin_new(&priv->widgets, json,
FIELD_UPLOAD_LIMIT, tb, 0, INT_MAX,
1);
hig_workarea_add_row_w(t, &row, tb, w, NULL);
@@ -219,7 +219,7 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win,
torrent_get_seed_ratio_mode(json));
hig_workarea_add_row(t, &row, _("Seed ratio mode:"), w, NULL);
- w = trg_json_widget_spin_new_double(&priv->widgets, json,
+ w = trg_json_widget_spin_new(&priv->widgets, json,
FIELD_SEED_RATIO_LIMIT, NULL, 0,
INT_MAX, 0.2);
seed_ratio_mode_changed_cb(priv->seedRatioMode, w);
@@ -229,7 +229,7 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win,
hig_workarea_add_section_title(t, &row, _("Peers"));
- w = trg_json_widget_spin_new_int(&priv->widgets, json,
+ w = trg_json_widget_spin_new(&priv->widgets, json,
FIELD_PEER_LIMIT, NULL, 0, INT_MAX,
5);
hig_workarea_add_row(t, &row, _("Peer limit:"), w, w);