After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346886 - GtkTreeModelFilter doesn't allow multiple calls to set_visible_func
GtkTreeModelFilter doesn't allow multiple calls to set_visible_func
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2006-07-07 13:30 UTC by Emmanuel Briot
Modified: 2014-08-30 06:02 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Emmanuel Briot 2006-07-07 13:30:44 UTC
Please describe the problem:
The code in gtktreemodelfilter.c is such that a function set through a call
to gtk_tree_model_filter_set_visible_func cannot be overriden by another
call to gtk_tree_model_filter_set_visible_func.
It seems to me that simply removing the g_return_if_fail would be enough, since
the if statement right after that already deals with the case where such a
function has been set.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Paolo Borelli 2006-12-19 20:47:58 UTC
reassigning to the right component
Comment 2 Matthias Clasen 2006-12-20 18:32:22 UTC
Kris informed me that this was an intentional design decision.
It does need to be clearly documented, however.