summaryrefslogtreecommitdiff
path: root/src/trg-torrent-model.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-23 17:08:34 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-23 17:08:34 +0000
commitdb6a9b33d286e1b2ded90957f6938591661a7a47 (patch)
tree2ea0f47ae4a21ca1194c0cda1e0a5c9987b1b912 /src/trg-torrent-model.c
parent9d0f1730fa146ee68ad3c6e3e6a9295364d22d98 (diff)
reindent. remote prefs was sending the active encryption preference, lower cased, which won't work with i18n - fixed.
Diffstat (limited to 'src/trg-torrent-model.c')
-rw-r--r--src/trg-torrent-model.c42
1 files changed, 19 insertions, 23 deletions
diff --git a/src/trg-torrent-model.c b/src/trg-torrent-model.c
index d692627..11e42f9 100644
--- a/src/trg-torrent-model.c
+++ b/src/trg-torrent-model.c
@@ -287,8 +287,7 @@ update_torrent_iter(TrgTorrentModel * model, gint64 serial,
json_object_ref(t);
#ifdef DEBUG
- gtk_list_store_set(ls, iter,
- TORRENT_COLUMN_ICON, statusIcon, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_ICON, statusIcon, -1);
gtk_list_store_set(ls, iter,
TORRENT_COLUMN_NAME, torrent_get_name(t), -1);
gtk_list_store_set(ls, iter,
@@ -296,18 +295,13 @@ update_torrent_iter(TrgTorrentModel * model, gint64 serial,
gtk_list_store_set(ls, iter,
TORRENT_COLUMN_DONE, torrent_get_percent_done(t),
-1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_STATUS,
- statusString, -1);
- gtk_list_store_set(ls, iter,
- TORRENT_COLUMN_DOWNSPEED, downRate, -1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_FLAGS,
- newFlags, -1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_UPSPEED,
- upRate, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_STATUS, statusString, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_DOWNSPEED, downRate, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_FLAGS, newFlags, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_UPSPEED, upRate, -1);
gtk_list_store_set(ls, iter, TORRENT_COLUMN_ETA,
torrent_get_eta(t), -1);
- gtk_list_store_set(ls, iter,
- TORRENT_COLUMN_UPLOADED, uploaded, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_UPLOADED, uploaded, -1);
gtk_list_store_set(ls, iter,
TORRENT_COLUMN_DOWNLOADED, downloaded, -1);
gtk_list_store_set(ls, iter, TORRENT_COLUMN_RATIO,
@@ -315,18 +309,18 @@ update_torrent_iter(TrgTorrentModel * model, gint64 serial,
&& downloaded >
0 ? (double) uploaded / (double) downloaded : 0,
-1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_ID, id,
- -1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_JSON, t,
- -1);
- gtk_list_store_set(ls, iter,
- TORRENT_COLUMN_UPDATESERIAL, serial, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_ID, id, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_JSON, t, -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_UPDATESERIAL, serial, -1);
gtk_list_store_set(ls, iter,
TORRENT_COLUMN_ADDED, torrent_get_added_date(t),
-1);
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_DOWNLOADDIR, torrent_get_download_dir(t));
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_BANDWIDTH_PRIORITY, torrent_get_bandwidth_priority(t));
- gtk_list_store_set(ls, iter, TORRENT_COLUMN_DONE_DATE, torrent_get_done_date(t), -1);
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_DOWNLOADDIR,
+ torrent_get_download_dir(t));
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_BANDWIDTH_PRIORITY,
+ torrent_get_bandwidth_priority(t));
+ gtk_list_store_set(ls, iter, TORRENT_COLUMN_DONE_DATE,
+ torrent_get_done_date(t), -1);
#else
gtk_list_store_set(ls, iter,
TORRENT_COLUMN_ICON, statusIcon,
@@ -348,8 +342,10 @@ update_torrent_iter(TrgTorrentModel * model, gint64 serial,
0
&& downloaded >
0 ? (double) uploaded / (double) downloaded : 0,
- TORRENT_COLUMN_DOWNLOADDIR, torrent_get_download_dir(t),
- TORRENT_COLUMN_BANDWIDTH_PRIORITY, torrent_get_bandwidth_priority(t),
+ TORRENT_COLUMN_DOWNLOADDIR,
+ torrent_get_download_dir(t),
+ TORRENT_COLUMN_BANDWIDTH_PRIORITY,
+ torrent_get_bandwidth_priority(t),
TORRENT_COLUMN_ID, id, TORRENT_COLUMN_JSON, t,
TORRENT_COLUMN_UPDATESERIAL, serial, -1);
#endif