summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-09 11:17:49 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-09 11:17:49 +0000
commit10b8cad6f28e1fbd44708914633523df60269e8b (patch)
tree61d58a19fb2af5b862d8fe735b5cc65cb7b0a8eb /src/trg-main-window.c
parent66131ac638447ea3bf63c9a0b540da3a575e7051 (diff)
rename the addremove signal in the torrent model to update-filters. this is the only thing it's used for, and I've just made another use of it - since we now check if a download directory has changed to update the short one, emit the signal. now moving torrent(s) to a new directory is instantly shown.
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 8b71a8a..45212be 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -321,7 +321,7 @@ static void on_torrent_completed(TrgTorrentModel * model, GtkTreeIter * iter,
#endif
}
-static void on_torrent_addremove(TrgTorrentModel * model, gpointer data) {
+static void on_update_filters(TrgTorrentModel * model, gpointer data) {
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(data);
trg_state_selector_update(priv->stateSelector);
}
@@ -1981,8 +1981,8 @@ static GObject *trg_main_window_constructor(GType type,
G_CALLBACK(on_torrent_completed), self);
g_signal_connect(priv->torrentModel, "torrent-added",
G_CALLBACK(on_torrent_added), self);
- g_signal_connect(priv->torrentModel, "torrent-addremove",
- G_CALLBACK(on_torrent_addremove), self);
+ g_signal_connect(priv->torrentModel, "update-filters",
+ G_CALLBACK(on_update_filters), self);
priv->sortedTorrentModel = gtk_tree_model_sort_new_with_model(
GTK_TREE_MODEL(priv->torrentModel));