aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-topics-selector.c13
2 files changed, 10 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index b70d207d5..1fe71429c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2003-06-10 Marco Pesenti Gritti <marco@it.gnome.org>
+ * src/bookmarks/ephy-topics-selector.c: (ephy_topics_build_ui):
+
+ Dont set sort function on idle. The sort is visible and we can
+ crash if the dialog is closed very fast.
+
+2003-06-10 Marco Pesenti Gritti <marco@it.gnome.org>
+
* lib/egg/eggtoolbar.c:
* lib/egg/eggtoolbutton.c:
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c
index 994ed302e..cacf9a1b5 100644
--- a/src/bookmarks/ephy-topics-selector.c
+++ b/src/bookmarks/ephy-topics-selector.c
@@ -299,15 +299,6 @@ ephy_topics_selector_apply (EphyTopicsSelector *editor)
}
static gboolean
-set_sort_column_id (GtkListStore *model)
-{
- gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model),
- COL_TOPIC,
- GTK_SORT_ASCENDING);
- return FALSE;
-}
-
-static gboolean
topic_clicked (GtkTreeView *tree_view,
GdkEventButton *event,
EphyTopicsSelector *selector)
@@ -376,7 +367,9 @@ ephy_topics_build_ui (EphyTopicsSelector *editor)
gtk_tree_view_set_model (GTK_TREE_VIEW (editor), GTK_TREE_MODEL (model));
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (editor), FALSE);
- g_idle_add ((GSourceFunc) set_sort_column_id, model);
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model),
+ COL_TOPIC,
+ GTK_SORT_ASCENDING);
g_object_unref (model);
/* Has topic column */