diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-16 23:41:56 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-16 23:41:56 +0000 |
commit | 2743f8edc3b22deb7a5cd34760faef137fbf4fdc (patch) | |
tree | 5ab296a8f08945d24c364a9e99f3aa6299db56f7 /src/trg-peers-model.c | |
parent | 2515c70aec58814f32fc7e22ab9dfa90fcd934e6 (diff) |
updating a torrents file or trackers doesn't make it recently active, so these changes could get missed if doing active only updates. for these: send the torrent id as the request tag, which Transmission passes back, then we request an update just for that torrent.
Diffstat (limited to 'src/trg-peers-model.c')
-rw-r--r-- | src/trg-peers-model.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/trg-peers-model.c b/src/trg-peers-model.c index b80b05a..c9a64e1 100644 --- a/src/trg-peers-model.c +++ b/src/trg-peers-model.c @@ -61,7 +61,7 @@ find_existing_peer_item_foreachfunc(GtkTreeModel * model, GtkTreePath * path G_GNUC_UNUSED, GtkTreeIter * iter, gpointer data) { - struct peerAndIter *pi = (struct peerAndIter *)data; + struct peerAndIter *pi = (struct peerAndIter *) data; gchar *ip; gtk_tree_model_get(model, iter, PEERSCOL_IP, &ip, -1); @@ -159,8 +159,7 @@ void trg_peers_model_update(TrgPeersModel * model, gint64 updateSerial, PEERSCOL_ICON, GTK_STOCK_NETWORK, PEERSCOL_IP, address, #ifdef HAVE_GEOIP - PEERSCOL_COUNTRY, - country ? country : "", + PEERSCOL_COUNTRY, country ? country : "", #endif PEERSCOL_CLIENT, peer_get_client_name(peer), -1); @@ -183,9 +182,9 @@ void trg_peers_model_update(TrgPeersModel * model, gint64 updateSerial, if (isNew == TRUE) { GtkTreePath *path = - gtk_tree_model_get_path(GTK_TREE_MODEL(model), &peerIter); + gtk_tree_model_get_path(GTK_TREE_MODEL(model), &peerIter); GtkTreeRowReference *treeRef = - gtk_tree_row_reference_new(GTK_TREE_MODEL(model), path); + gtk_tree_row_reference_new(GTK_TREE_MODEL(model), path); GInetAddress *inetAddr; GResolver *resolver; |