summaryrefslogtreecommitdiff
path: root/src/trg-torrent-add-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-10 19:24:31 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-10 19:24:31 +0000
commit3ba2b844d74f7196ac92b8ff6d6e516784e9140e (patch)
tree58894dd9a835f6ed8ef27a2df0e9884a57fe7322 /src/trg-torrent-add-dialog.c
parent8d986c31c7d47c2c6f8c5e2eab34b6467ed9365e (diff)
fix for click on priority in main tree view toggling enabled/disabled. increment file parent sizes in the temporary tree instead of in the gtk model for performance.
Diffstat (limited to 'src/trg-torrent-add-dialog.c')
-rw-r--r--src/trg-torrent-add-dialog.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c
index 0c25058..b78c30a 100644
--- a/src/trg-torrent-add-dialog.c
+++ b/src/trg-torrent-add-dialog.c
@@ -292,7 +292,6 @@ static gboolean onViewButtonPressed(GtkWidget * w, GdkEventButton * event,
{
return trg_files_tree_view_onViewButtonPressed(w, event, FC_PRIORITY,
FC_ENABLED,
- TRUE,
G_CALLBACK(set_low),
G_CALLBACK(set_normal),
G_CALLBACK(set_high),
@@ -473,13 +472,8 @@ static void store_add_node(GtkTreeStore * store, GtkTreeIter * parent,
gtk_tree_store_append(store, &child, parent);
gtk_tree_store_set(store, &child, FC_LABEL, node->name, FC_ENABLED,
1, FC_INDEX, node->children ? -1 : node->index,
- FC_PRIORITY, TR_PRI_NORMAL, -1);
-
- if (!node->children) {
- gtk_tree_store_set(store, &child, FC_SIZE, node->length, -1);
- trg_files_model_update_parents(GTK_TREE_MODEL(store), &child,
- FC_SIZE);
- }
+ FC_PRIORITY, TR_PRI_NORMAL,
+ FC_SIZE, node->length, -1);
}
for (li = node->children; li; li = g_list_next(li))