From e1b13312f975f38d3d7437f28299912eff6947e0 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 8 Jan 2012 00:52:56 +0000 Subject: fix the performance problems with the torrent add dialog on torrents with many files/dirs. the parent size updates just walks up parents rather than a full foreach, and the inserts try to use the previous update to speed up finding/creating the directories. I'll probably do something similar to the main files treeview. --- src/trg-cell-renderer-counter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/trg-cell-renderer-counter.c') diff --git a/src/trg-cell-renderer-counter.c b/src/trg-cell-renderer-counter.c index 497f122..13867ab 100644 --- a/src/trg-cell-renderer-counter.c +++ b/src/trg-cell-renderer-counter.c @@ -32,7 +32,7 @@ G_DEFINE_TYPE(TrgCellRendererCounter, trg_cell_renderer_counter, #define TRG_CELL_RENDERER_COUNTER_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRG_TYPE_CELL_RENDERER_COUNTER, TrgCellRendererCounterPrivate)) typedef struct _TrgCellRendererCounterPrivate - TrgCellRendererCounterPrivate; + TrgCellRendererCounterPrivate; struct _TrgCellRendererCounterPrivate { gint count; @@ -102,8 +102,8 @@ static void trg_cell_renderer_counter_dispose(GObject * object) TrgCellRendererCounterPrivate *priv = TRG_CELL_RENDERER_COUNTER_GET_PRIVATE(object); g_free(priv->originalLabel); - G_OBJECT_CLASS(trg_cell_renderer_counter_parent_class)-> - dispose(object); + G_OBJECT_CLASS(trg_cell_renderer_counter_parent_class)->dispose + (object); } static void -- cgit v1.2.3