diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-08 00:52:56 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-08 00:52:56 +0000 |
commit | e1b13312f975f38d3d7437f28299912eff6947e0 (patch) | |
tree | 563d1d7937ce87915e2055d9b2f1dae37d2b9b71 /src/trg-cell-renderer-file-icon.c | |
parent | 0a1fa495bd2186c2004fbc0f8977fe52a5f82168 (diff) |
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.
Diffstat (limited to 'src/trg-cell-renderer-file-icon.c')
-rw-r--r-- | src/trg-cell-renderer-file-icon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trg-cell-renderer-file-icon.c b/src/trg-cell-renderer-file-icon.c index 887ac03..4e578c8 100644 --- a/src/trg-cell-renderer-file-icon.c +++ b/src/trg-cell-renderer-file-icon.c @@ -34,7 +34,7 @@ G_DEFINE_TYPE(TrgCellRendererFileIcon, trg_cell_renderer_file_icon, #define TRG_CELL_RENDERER_FILE_ICON_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRG_TYPE_CELL_RENDERER_FILE_ICON, TrgCellRendererFileIconPrivate)) typedef struct _TrgCellRendererFileIconPrivate - TrgCellRendererFileIconPrivate; + TrgCellRendererFileIconPrivate; struct _TrgCellRendererFileIconPrivate { gint64 file_id; @@ -117,8 +117,8 @@ static void trg_cell_renderer_file_icon_dispose(GObject * object) TrgCellRendererFileIconPrivate *priv = TRG_CELL_RENDERER_FILE_ICON_GET_PRIVATE(object); g_free(priv->text); - G_OBJECT_CLASS(trg_cell_renderer_file_icon_parent_class)-> - dispose(object); + G_OBJECT_CLASS(trg_cell_renderer_file_icon_parent_class)->dispose + (object); } static void |