[hafqa] [hafqa] [Bug 841] "Install from file" file selection dialog shows all kind of files in first folder shown

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Wed Nov 8 18:26:06 EET 2006
https://maemo.org/bugzilla/show_bug.cgi?id=841





------- Additional Comments From marius.vollmer at nokia.com  2006-11-08 18:26 -------
What about this patch:

Index: hildon-fm/hildon-file-selection.c
===================================================================
--- hildon-fm/hildon-file-selection.c	(revision 7849)
+++ hildon-fm/hildon-file-selection.c	(working copy)
@@ -2981,6 +2981,9 @@
     priv->view_filter = gtk_tree_model_filter_new(priv->main_model, temp_path);
     gtk_tree_path_free (temp_path);
 
+    gtk_tree_model_filter_set_visible_func 
+      (GTK_TREE_MODEL_FILTER (priv->view_filter), filter_func, priv, NULL);
+
     priv->sort_model = hildon_file_selection_create_sort_model(self,
priv->view_filter);
     hildon_file_selection_enable_cursor_magic (self, priv->sort_model);
 

That's what I came up with after some code reading.  I will now go and try to
reproduce the problem...

The theory of the patch above is that the visible func needs to be set whenever
we create a new filter_model, otherwise we might end up with a content pane that
becomes visible without a visible func.  We should not need to set the visible
func more than once per filter model.

-- 
Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list