[gtk+] Don't set the sort column when there is no model
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Don't set the sort column when there is no model
- Date: Wed, 17 Jun 2009 22:00:07 -0400 (EDT)
commit 3c75004474b099ff695c0d3d1835c245a550f12f
Author: Federico Mena Quintero <federico novell com>
Date: Wed Jun 17 20:33:57 2009 -0500
Don't set the sort column when there is no model
We can't set the sort column when we load the GtkFileChooser's settings, as the
file models may not have been created yet. Wait until the models are actually
present; then we can set the sort column.
Signed-off-by: Federico Mena Quintero <federico novell com>
gtk/gtkfilechooserdefault.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 7dc9867..2e5233c 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6114,7 +6114,10 @@ settings_load (GtkFileChooserDefault *impl)
impl->sort_column = sort_column;
impl->sort_order = sort_order;
- set_sort_column (impl);
+ /* We don't call set_sort_column() here as the models may not have been
+ * created yet. The individual functions that create and set the models will
+ * call set_sort_column() themselves.
+ */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]