diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 12:34:10 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 12:34:10 +0000 |
commit | fccdb76b5140f0764a5e6ad035e67519b5ee6f6a (patch) | |
tree | a516acfcc216f49f5bdefe6fed0173a10069917a /src/trg-torrent-props-dialog.c | |
parent | be569c0953fcd777ae00ae41feb9c673e4df2f23 (diff) |
queue position setting
Diffstat (limited to 'src/trg-torrent-props-dialog.c')
-rw-r--r-- | src/trg-torrent-props-dialog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c index 73f21ac..35afb6d 100644 --- a/src/trg-torrent-props-dialog.c +++ b/src/trg-torrent-props-dialog.c @@ -169,8 +169,14 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win, gtk_combo_box_append_text(GTK_COMBO_BOX(w), _("High")); gtk_combo_box_set_active(GTK_COMBO_BOX(w), torrent_get_bandwidth_priority(json) + 1); + 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, FIELD_QUEUE_POSITION, NULL, 0, INT_MAX, 1); + hig_workarea_add_row(t, &row, _("Queue Position:"), w, w); + } + 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, FIELD_DOWNLOAD_LIMIT, tb, 0, INT_MAX, 1); hig_workarea_add_row_w(t, &row, tb, w, NULL); @@ -182,7 +188,6 @@ static GtkWidget *trg_props_limitsPage(TrgTorrentPropsDialog * win, hig_workarea_add_section_title(t, &row, _("Seeding")); w = priv->seedRatioMode = gtk_combo_box_new_text(); - //widget_set_json_key(GTK_WIDGET(w), FIELD_SEED_RATIO_MODE); gtk_combo_box_append_text(GTK_COMBO_BOX(w), _("Use global settings")); gtk_combo_box_append_text(GTK_COMBO_BOX(w), _("Stop seeding at ratio")); |