[gtk+] Bug #514260 – Better filtering for "Recently Used" files
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Bug #514260 – Better filtering for "Recently Used" files
- Date: Thu, 30 Jul 2009 10:31:59 +0000 (UTC)
commit 2d794051186deb05e440ede12434c261906dc3c1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat May 30 12:43:28 2009 +0100
Bug #514260 â?? Better filtering for "Recently Used" files
Instead of refiltering the recently used files we should rebuild
the list altogether when the current GtkFileFilter changes; this
allows us to keep showing the maximum amount of recently used
files.
Fixes bug:
http://bugzilla.gnome.org/show_bug.cgi?id=514260
gtk/gtkfilechooserdefault.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index ff4d1cf..365f4e0 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -10430,11 +10430,15 @@ set_current_filter (GtkFileChooserDefault *impl,
if (impl->browse_files_model)
install_list_model_filter (impl);
- if (impl->search_model_filter)
+ if (impl->operation_mode == OPERATION_MODE_SEARCH &&
+ impl->search_model_filter != NULL)
gtk_tree_model_filter_refilter (impl->search_model_filter);
- if (impl->recent_model_filter)
- gtk_tree_model_filter_refilter (impl->recent_model_filter);
+ /* we want to have all the matching results, and not just a
+ * filter of the previous model
+ */
+ if (impl->operation_mode == OPERATION_MODE_RECENT)
+ recent_start_loading (impl);
g_object_notify (G_OBJECT (impl), "filter");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]