[gtk+/filesystemmodel: 19/28] detect a filesystemmodel differently
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/filesystemmodel: 19/28] detect a filesystemmodel differently
- Date: Tue, 23 Jun 2009 16:18:27 -0400 (EDT)
commit b28d5add7a23746e196aa113e26a87c680c609f0
Author: Benjamin Otte <otte gnome org>
Date: Mon Jun 22 13:06:39 2009 +0200
detect a filesystemmodel differently
Gets rid of the case where we're still sorting while the directory is
changed and that causes a fallback to gtk_tree_model_get()
gtk/gtkfilechooserdefault.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 31375d7..70e7234 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6094,8 +6094,7 @@ install_list_model_filter (GtkFileChooserDefault *impl)
#define COMPARE_DIRECTORIES \
GtkFileChooserDefault *impl = user_data; \
- GtkFileSystemModel *fs_model = model == (GtkTreeModel *) impl->browse_files_model ? \
- impl->browse_files_model : NULL; \
+ GtkFileSystemModel *fs_model = GTK_IS_FILE_SYSTEM_MODEL (model) ? GTK_FILE_SYSTEM_MODEL (model) : NULL; \
gboolean dir_a, dir_b; \
\
if (fs_model) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]