aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-11 03:05:29 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-11 03:05:29 +0800
commita2a5043584b00f1ee879c41162ec76060df74bc0 (patch)
treef14ef60bb84c842c1a33f18dd6de71f171b98c30 /src/bookmarks
parent94abb0c23b768030c5f3c4e69a884d66d86a2665 (diff)
downloadgsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar.gz
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar.bz2
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar.lz
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar.xz
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.tar.zst
gsoc2013-epiphany-a2a5043584b00f1ee879c41162ec76060df74bc0.zip
Dont set sort function on idle. The sort is visible and we can crash if
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.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-topics-selector.c13
1 files changed, 3 insertions, 10 deletions
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 */