summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-29 08:27:57 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-29 08:27:57 +0000
commitd88835b13f6dcce872bb664e0aa8c206f7d4ae14 (patch)
tree2d876264bce72480f128866707cb30f645540e8e /src/trg-main-window.c
parent75f7ac97df0be37b83c658d9d6e26aad819ffed5 (diff)
issue 167
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 9788763..3147170 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -52,6 +52,7 @@
#include "trg-about-window.h"
#include "trg-tree-view.h"
#include "trg-prefs.h"
+#include "trg-sortable-filtered-model.h"
#include "trg-torrent-model.h"
#include "trg-torrent-tree-view.h"
#include "trg-peers-model.h"
@@ -1984,8 +1985,8 @@ static GObject *trg_main_window_constructor(GType type,
priv->sortedTorrentModel = gtk_tree_model_sort_new_with_model(
GTK_TREE_MODEL(priv->torrentModel));
- priv->filteredTorrentModel = gtk_tree_model_filter_new(
- GTK_TREE_MODEL(priv->sortedTorrentModel), NULL);
+ priv->filteredTorrentModel = trg_sortable_filtered_model_new(
+ GTK_TREE_SORTABLE(priv->sortedTorrentModel), NULL);
gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER
(priv->filteredTorrentModel), trg_torrent_tree_view_visible_func,
self, NULL);