GNOME Bugzilla – Bug 691979
Changes to allow for a "No results found" widget
Last modified: 2013-02-15 00:13:06 UTC
We want to add an insensitive "No results found" label when we're filtering. I thought about adding an "empty" prop that returns whether there are visible children, but showing a label based on that would make state tracking very iffy. This was the best way I could think to accomplish it.
Created attachment 233698 [details] [review] egg-list-box: Fix indentation
Created attachment 233699 [details] [review] egg-list-box: Move refiltered behavior to be a signal If we want to show a widget when there are no children left after a refilter, we need a hook to be able to calculate that. Adding a signal allows us to run handlers before and after the refiltering is done.
Created attachment 233700 [details] [review] egg-list-box: Remove redundant check A ChildInfo's widget should never be NULL.
Created attachment 233701 [details] [review] egg-list-box: Don't allow selection/activation of insensitive widgets
Review of attachment 233698 [details] [review]: sure
Review of attachment 233699 [details] [review]: Makes sense to me
Review of attachment 233700 [details] [review]: sure
Review of attachment 233701 [details] [review]: I think we eventually need more control over activation/selection - it should be possible to have a row that is sensitive, yet not activatable.
Review of attachment 233699 [details] [review]: If we had any docs here, it would be good to explain the 'no matches' use case with an example. Given that we don't have docs yet, good as is
Review of attachment 233701 [details] [review]: I think if we do this, we also have to watch for sensitivity changes of children, or we may end up in confused state...
Attachment 233698 [details] pushed as a2b8fcd - egg-list-box: Fix indentation Attachment 233699 [details] pushed as f72c0e7 - egg-list-box: Move refiltered behavior to be a signal Attachment 233700 [details] pushed as f6ed227 - egg-list-box: Remove redundant check
Selection of insensitive widgets will have to be done a different way. Let's close this.