diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-21 22:17:01 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-21 22:17:01 +0000 |
commit | 682ae4d2444dfb7ddb4d35c578bf3656bca59922 (patch) | |
tree | 679bd4a5c136e951494a0b369e3452ed5135a1c8 /src/trg-main-window.h | |
parent | 004fe9ed03adf35a62ee714319cf3b49887afde0 (diff) |
only lookup the selected torrent id when it changes, remember it until checking every update, use the hash table instead. also fix a crash on multiple consecutive deletes caused by gtktreemodel weirdness.
Diffstat (limited to 'src/trg-main-window.h')
-rw-r--r-- | src/trg-main-window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trg-main-window.h b/src/trg-main-window.h index 564dc24..1c3eda8 100644 --- a/src/trg-main-window.h +++ b/src/trg-main-window.h @@ -68,6 +68,8 @@ void trg_main_window_remove_status_icon(TrgMainWindow * win); void trg_main_window_add_graph(TrgMainWindow * win, gboolean show); void trg_main_window_remove_graph(TrgMainWindow * win); TrgStateSelector *trg_main_window_get_state_selector(TrgMainWindow * win); +gint trg_mw_get_selected_torrent_id(TrgMainWindow *win); +GtkTreeModel *trg_main_window_get_torrent_model(TrgMainWindow *win); G_END_DECLS #endif /* MAIN_WINDOW_H_ */ |