diff options
author | Mikael Hallendal <micke@codefactory.se> | 2002-01-10 01:30:54 +0000 |
---|---|---|
committer | Mikael Hallendal <hallski@src.gnome.org> | 2002-01-10 01:30:54 +0000 |
commit | b12c0417db51c8aaf3d3de3c44bc02152d6f92fe (patch) | |
tree | 6a3ad100e1caa4d73b86f9e828162523b26e370a /src/yelp-base.c | |
parent | 91d640c7a9401a4ef1f4d0ab927c7ccc4d7d5136 (diff) | |
download | yelp-b12c0417db51c8aaf3d3de3c44bc02152d6f92fe.tar.gz |
- use the new GtkTreeModelFilter. (yvc_tree_selection_changed_cb): get the
2002-01-10 Mikael Hallendal <micke@codefactory.se>
* src/yelp-view-content.c:
- use the new GtkTreeModelFilter.
(yvc_tree_selection_changed_cb): get the model from the actual
tree and use it to get the section selected.
(yelp_view_content_new): don't set the model here, use the
filtered model in content_show_path instead.
(yelp_view_content_show_path): set the model to a filtered model
with virtual root set to the selected path.
* src/yelp-util.c (yelp_util_contents_add_section): set third
hidden filter-column to always TRUE (always visible).
* src/yelp-base.c (yelp_base_init): added boolean hidden column
needed by the filtering.
* src/gtktreemodelfilter.[ch]: added GtkTreeModelFilter from
Kristian Rietval, this is temporaray until this makes it into
Gtk+ or some extra library.
* src/Makefile.am:
(yelp_LDADD): added libgtktreemodelfilter
(noinst_LTLIBRARIES): added libgtktreemodelfilter.
Diffstat (limited to 'src/yelp-base.c')
-rw-r--r-- | src/yelp-base.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yelp-base.c b/src/yelp-base.c index 3faf7e75..ab1db488 100644 --- a/src/yelp-base.c +++ b/src/yelp-base.c @@ -66,9 +66,10 @@ yelp_base_init (YelpBase *base) priv = g_new0 (YelpBasePriv, 1); - priv->content_store = gtk_tree_store_new (2, + priv->content_store = gtk_tree_store_new (3, G_TYPE_STRING, - G_TYPE_POINTER); + G_TYPE_POINTER, + G_TYPE_BOOLEAN); base->priv = priv; } |