diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-09 09:48:03 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-09 09:48:03 +0000 |
commit | 690067ae5d628cc4ed46826c70ca42a004a24e18 (patch) | |
tree | c99ddcd448a5f600fa7f4f527e2b265498bedfdc /src/trg-torrent-model.c | |
parent | 3757c78e835d01bddf89675e1c60a77020543338 (diff) |
added column
Diffstat (limited to 'src/trg-torrent-model.c')
-rw-r--r-- | src/trg-torrent-model.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-torrent-model.c b/src/trg-torrent-model.c index 1753619..ca33d6c 100644 --- a/src/trg-torrent-model.c +++ b/src/trg-torrent-model.c @@ -123,6 +123,7 @@ static void trg_torrent_model_init(TrgTorrentModel * self) column_types[TORRENT_COLUMN_SEEDS] = G_TYPE_INT; column_types[TORRENT_COLUMN_LEECHERS] = G_TYPE_INT; column_types[TORRENT_COLUMN_DOWNSPEED] = G_TYPE_INT64; + column_types[TORRENT_COLUMN_ADDED] = G_TYPE_INT64; column_types[TORRENT_COLUMN_UPSPEED] = G_TYPE_INT64; column_types[TORRENT_COLUMN_ETA] = G_TYPE_INT64; column_types[TORRENT_COLUMN_UPLOADED] = G_TYPE_INT64; @@ -237,9 +238,12 @@ update_torrent_iter(gint64 serial, TrgTorrentModel * model, -1); gtk_list_store_set(GTK_LIST_STORE(model), iter, TORRENT_COLUMN_UPDATESERIAL, serial, -1); + gtk_list_store_set(GTK_LIST_STORE(model), iter, + TORRENT_COLUMN_ADDED, torrent_get_added_date(t), -1); #else gtk_list_store_set(GTK_LIST_STORE(model), iter, TORRENT_COLUMN_ICON, statusIcon, + TORRENT_COLUMN_ADDED, torrent_get_added_date(t), TORRENT_COLUMN_NAME, torrent_get_name(t), TORRENT_COLUMN_SIZE, torrent_get_size(t), TORRENT_COLUMN_DONE, |