diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-12-27 18:35:13 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-12-27 18:35:13 +0000 |
commit | 97830623478379916c723854e8cbb9473f8acd1f (patch) | |
tree | eb9d1a1a81928a315cbac171ed5dd49aee4a84f2 /src/trg-state-selector.h | |
parent | 42f593e062f1e444339edda7ea4e30f689b303ae (diff) |
filter items (not trackers+dirs for now) show counts next to them. while doing this, I made the stats update loop something that happens only if something changes, which avoids a full iteration over all torrents (even in active only).
Diffstat (limited to 'src/trg-state-selector.h')
-rw-r--r-- | src/trg-state-selector.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trg-state-selector.h b/src/trg-state-selector.h index 11b97a4..f002b3b 100644 --- a/src/trg-state-selector.h +++ b/src/trg-state-selector.h @@ -29,6 +29,7 @@ enum { STATE_SELECTOR_ICON, STATE_SELECTOR_NAME, + STATE_SELECTOR_COUNT, STATE_SELECTOR_BIT, STATE_SELECTOR_SERIAL, STATE_SELECTOR_INDEX, @@ -60,7 +61,7 @@ typedef struct { } TrgStateSelectorClass; GType trg_state_selector_get_type(void); -TrgStateSelector *trg_state_selector_new(TrgClient * client); +TrgStateSelector *trg_state_selector_new(TrgClient * client, TrgTorrentModel *tmodel); G_END_DECLS guint32 trg_state_selector_get_flag(TrgStateSelector * s); void trg_state_selector_update(TrgStateSelector * s); |