[Glade-users] Treeview filter



I have made some progress with regards to the filtering issue

I got the combobox to work perfectly with the treestore_filter, my problem had to do with the way glade deals 
with comboboxes. Comboboxes, and their tree models have to be the most complicated tool in all of GTK. I 
don't even know what I'm doing with them, I just know that a few of the comboboxes in my glade project work 
as expected, and so I just keep copy/pasting those ones. If I create a new one, the items don't accurately 
get displayed (if at all).

I still can't figure out why the treeview widget doesn't work properly though.

PEYMAN ASKARI <paskari007 at yahoo.ca> wrote: One last thing, if, in the combobox, I retrieve the active 
text, it accurately writes what it's supposed to. So the combobox is filtering the correct values, just not 
displaying them.

PEYMAN ASKARI <paskari007 at yahoo.ca> wrote: So I did some more testing, and I connected the same filter to 
a combobox to see if the issue was with the treeview widget, or something more general, and as it turns out, 
the filter adds the items to the combobox, but only adds them as blank spaces. So the drop down menu gets 
longer and longer, but there is nothing written inside there. This is really wierd since the filter is not 
suppsoed to change the elements, only pick and choose a subset of them

PEYMAN ASKARI <paskari007 at yahoo.ca> wrote: I'm having a problem filtering treeviews.

Essentially I have three treeviews, and a bunch of combo boxes which filter those treeviews, more or less 
like so


treestore_filter=treestore.filter_new()
treestore_filter.set_visible_func(foo)

combobox.set_model(treestore_filter)

And it works perfectly, but when I do the  exact same thing, but for another treeview widget (as opposed to a 
combobox widget), none of the entries show up...it's just an empty treeview widget with no rows/columns. If I 
query for the depth of the treeview, or if I traverse the elements inside it, they are there, just not 
visible. 

Does anyone know what I can do?
thanks
_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20081019/a151895e/attachment.html 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]