diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-18 03:35:34 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-18 03:35:34 +0800 |
commit | 773c44f34acfbf279907c31e91ead8a69d0912cb (patch) | |
tree | f5c6adde8c124e7f9019104d0834024644b56b2e | |
parent | bbe7372f42fb7c1128c48b106ba07e7c5b7c3f70 (diff) | |
download | gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar.gz gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar.bz2 gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar.lz gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar.xz gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.tar.zst gsoc2013-epiphany-773c44f34acfbf279907c31e91ead8a69d0912cb.zip |
When adding a column that can be sorted on, re-create the sort model, so
2006-01-17 Crispin Flowerday <gnome@flowerday.cx>
* lib/widgets/ephy-node-view.c (ephy_node_view_add_column):
When adding a column that can be sorted on, re-create the
sort model, so that it sets up the sort method correctly.
Fixes bug #320686
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.c | 8 |
2 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2006-01-17 Crispin Flowerday <gnome@flowerday.cx> + * lib/widgets/ephy-node-view.c (ephy_node_view_add_column): + + When adding a column that can be sorted on, re-create the + sort model, so that it sets up the sort method correctly. + Fixes bug #320686 + +2006-01-17 Crispin Flowerday <gnome@flowerday.cx> + * embed/ephy-embed-event.c: (ephy_embed_event_get_property): * embed/ephy-embed-event.h: * embed/mozilla/mozilla-embed-event.cpp: diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 362c77ccb..cec722019 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -1260,6 +1260,14 @@ ephy_node_view_add_column (EphyNodeView *view, if (flags & EPHY_NODE_VIEW_SORTABLE) { + /* Now we have created a new column, re-create the + * sort model, but ensure that the set_sort function + * hasn't been called, see bug #320686 */ + g_assert (view->priv->sort_column == -1); + g_object_unref (view->priv->sortmodel); + view->priv->sortmodel = ephy_tree_model_sort_new (view->priv->filtermodel); + gtk_tree_view_set_model (GTK_TREE_VIEW (view), GTK_TREE_MODEL (view->priv->sortmodel)); + gtk_tree_view_column_set_sort_column_id (gcolumn, column); } |