summaryrefslogtreecommitdiff
path: root/src/trg-model.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-10 14:57:38 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-10 14:57:38 +0000
commita1433a45c470950b3f03541257ef54c4bb48d449 (patch)
tree9e285c6bf2d0508f10b0ada60761f1bee2eb98f8 /src/trg-model.c
parentce795861eeb1893e40e4476fea71986450658948 (diff)
Korean support, thanks Youn! Also filter by tracker. Adding/removing trackers from the state selector every update seems like a waste of cycles, so only refresh when a torrent is added.
Diffstat (limited to 'src/trg-model.c')
-rw-r--r--src/trg-model.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trg-model.c b/src/trg-model.c
index e41c4b3..5796507 100644
--- a/src/trg-model.c
+++ b/src/trg-model.c
@@ -43,12 +43,13 @@ trg_model_remove_removed_foreachfunc(GtkTreeModel * model,
return FALSE;
}
-void
+guint
trg_model_remove_removed(GtkListStore * model, gint serial_column,
gint64 currentSerial)
{
struct trg_model_remove_removed_foreachfunc_args args;
GList *li;
+ guint removed = 0;
args.toRemove = NULL;
args.currentSerial = currentSerial;
@@ -60,9 +61,12 @@ trg_model_remove_removed(GtkListStore * model, gint serial_column,
li = g_list_previous(li)) {
gtk_list_store_remove(model, (GtkTreeIter *) li->data);
gtk_tree_iter_free((GtkTreeIter *) li->data);
+ removed++;
}
g_list_free(args.toRemove);
}
+
+ return removed;
}
struct find_existing_item_foreach_args {