aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-live-search.c
AgeCommit message (Collapse)Author
2012-05-30Port to GTK+ 3Mukund Sivaraman
2012-05-30Widget porting to GTK+ 3Tomasz Sterna
with some added fixes for strict compiler checks
2012-01-24Removed MAEMO_CHANGES and MAEMO_GTKTomasz Sterna
2011-11-14Merged fixlivesearch.patchTomasz Sterna
2010-06-15Use hildon_live_search_set_text() when hiding the live search widgetClaudio Saavedra
In order to get advantage of the fix in the previous commit. Fixes: NB#174382 (Only filtered contacts are picked from contact list)
2010-06-15Don't filter asynchronously when hildon_live_search_set_text() calledClaudio Saavedra
This is because calls to hildon_live_search_set_text() followed by a retrieval of the selection will then break, and at least addressbook assumes that this will happen synchronously. Since we only want to give better responsiveness in the case when the user is typing, no need to go fully asynchronously.
2010-06-15Do not destroy the mapping until the filtering is actually doneClaudio Saavedra
2010-05-21Use gdk_threads_add_idle for the idle live search refilteringClaudio Saavedra
2010-05-10Make filtering in HildonLiveSearch asynchronousClaudio Saavedra
There is no need to do a blocking call to refilter(), so simply connect an idle callback. This improves responsiveness in huge lists.
2010-05-10Call g_list_free() once instead of multiple times g_list_delete_link()Claudio Saavedra
2010-05-07Fix a critical warningClaudio Saavedra
Need to remove a row reference from the hash table when it's no longer in the model.
2010-05-06Mark reference_row_has_path() as staticClaudio Saavedra
2010-05-05Use a GtkTreeRowReference in HildonLiveSearch instead of GtkTreePathAlban Crequy
This fixes a bug when the underlying model changes and the selection becomes corrupt. Also, this patch uses a more efficient approach when creating and using the mapping, avoiding iterating the whole model but the selected items only instead. Fixes: NB#165952 (HildonLiveSearch selection is not consistent when the model changes) Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2010-05-05Fix another critical warningClaudio Saavedra
Fixes: NB#162288 (Changing the presence continously will lead to multiple GLIB Criticals in syslog)
2010-04-29Fix critical warnings in HildonLiveSearchClaudio Saavedra
These happen when convert_child_path_to_path() returns a NULL pointer.
2010-04-29[HildonLiveSearch] Use selection map only when not in GTK_SELECTION_NONEClaudio Saavedra
It is not necessary to maintain a selection mapping when the GtkTreeView's selection mode is GTK_SELECTION_NONE, so don't waste time on it.
2010-04-27[HildonLiveSearch] Initialize priv->selection_mapClaudio Saavedra
2010-04-13Pass ctrl+space to the GtkEntry in HildonLiveSearchClaudio Saavedra
This allows IM to do its work and switch the keyboard layout. Fixes: NB#155362 (Cannot change language in Contacts from keyboard)
2010-04-12Revert "[HildonLiveSearch] Unset the filter visible func. during dispose"Claudio Saavedra
This reverts commit fc750821842df60096068c9c9e4b33085a1eecbf. That commit is broken since the filter is set to NULL. Also, it is not really possible to change or unset the visible function, so we are doomed.
2010-03-22[HildonLiveSearch] Unset the filter visible func. during disposeClaudio Saavedra
This prevents a crasher when the model changes after the live search is disposed.
2010-03-08Fixed compilation warning in HildonLiveSearch regarding TreeModelSortXabier Rodriguez Calvar
2010-03-03Fix consistency of selection map in HildonLiveSearchXavier Claessens
Fixes NB#158744 (1st selected contact from the list is replaced with the next one instead of appending both to the list) Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2010-02-25Fix critical warningsClaudio Saavedra
Create the selection map when the filter is set and there is already a prefix text in the live search.
2010-02-25Filter after visible func. or filter are setClaudio Saavedra
This enables HildonLiveSearch:text to be set before the filter or visible function, and make it work accordingly.
2010-02-25Fix a critical warningClaudio Saavedra
There is a critical warning when HildonLiveSearch:text is set right after creation.
2010-02-25Documentation additions and minor fixesClaudio Saavedra
2010-02-25Indentation fixesClaudio Saavedra
2010-02-25Use the setter in hildon_live_search_set_property for "text"Claudio Saavedra
2010-02-25Emit GObject::notify on HildonLiveSearch:text changesClaudio Saavedra
Since HildonLiveSearch:text is a proxy for GtkEntry:text, it makes sense to do it in the handler for GtkEntry::changed.
2010-02-25Factor out HildonLiveSearch codeClaudio Saavedra
2010-02-25Fix critical warnings in HildonLiveSearchClaudio Saavedra
These were introduced by the virtual-root work.
2010-02-25Implement hildon_live_search_set_textAlban Crequy
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2010-02-25Add read-write "text" property on HildonLiveSearchAlban Crequy
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2010-02-24Fix HildonLiveSearch with multiple models in the viewAlban Crequy
Don't assume that the GtkTreeModel given to HildonLiveSearch is the one used by the GtkTreeView. hildon-fm uses a GtkTreeModelSort after the GtkTreeModelFilter, so it makes the necessary conversions of iterators if the application has a GtkTreeModelSort. Don't assume that items in the view have a deepness of 0. In selection_map_update_selection_from_map and selection_map_update_map_from_selection, it makes the conversions of GtkTreePath. Fixes: NB#140251, Livesearch for File Manager Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2010-02-15Avoid reinjecting control keys presses to the live search entry.Xabier Rodriguez Calvar
2010-01-14Fix build after Berto's patchClaudio Saavedra
2010-01-14Initial changes to support HildonLiveSearch used with other widgetsClaudio Saavedra
This will allow GtkIconView users to plug a HildonLiveSearch together with it. Also, add a new example of this.
2010-01-13Make keyboard shortcuts work with HildonLiveSearchAlberto Garcia
This patch solves a couple of problems in HildonLiveSearch's key-press handler: 1) Don't show the live search entry if the treeview is hidden 2) If the live search is hidden, pass all presses using the Ctrl key to the treeview, so shortcuts (e.g. Ctrl+A) still work. Fixes: NB#151707 (HildonLiveSearch breaks keyboard shortcuts)
2010-01-04Propagate the return value from gtk_widget_event() in live search hookMathias Hasselmann
Prevents unwanted consumption of unhandled key presses like keyboard shortcuts. Fixes: NB#151707 (HildonLiveSearch breaks keyboard shortcuts) Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-12-18Add hildon_live_search_clean_selection_map()Claudio Saavedra
This method allows to clean up the selection map kept internally in HildonLiveSearch, for cases in which restoring the previous selection would cause inconsistences.
2009-12-14Fix compilation warningsAlberto Garcia
2009-12-09Do not show the live search by default.Xavier Claessens
2009-12-08Do not call gtk_tree_model_filter_set_visible_func() multiple timesClaudio Saavedra
Since there is no need to set the visible function more than once, do it only once. This fixes some critical warnings.
2009-12-07Allow a visible function to be set more than once in HildonLiveSearchClaudio Saavedra
Avoiding this way critical warnings in HildonTouchSelector.
2009-11-19Fix a leak in selection_map_update_selection_from_map()Xavier Claessens
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-11-19Do not call the visible_func() excesively in HildonLiveSearchClaudio Saavedra
During the mapping of the selection, visible_func() was heavily used to find out whether a model row is visible or not. Instead, this could be done by checking whether filter_path is valid, then saving many calls to the visible_func().
2009-11-19Fix hildon_live_search_get_filter() return on assertion failureClaudio Saavedra
2009-11-17Add a HildonLiveSearch::refilter signalXavier Claessens
Adds a signal emitted when it is necessary to refilter the items in the GtkTreeModel in a live search widget. This adds the possibility for the user to stop the filtering or to filter it himself. Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-11-17Rename filter function to visible functionXavier Claessens
This matches better the terminology in GtkTreeModelFilter. Also, slightly improve the documentation. Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-11-17Add a hildon_live_search_get_filter() methodXavier Claessens
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>