From 2c39c7bbf944814a80e7494bf8029391ce97a5b2 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 31 Dec 2004 21:51:20 +0000 Subject: Set selection mode to BROWSE. Fixes bug #162331. 2004-12-31 Christian Persch * src/bookmarks/ephy-topics-selector.c: (ephy_topics_selector_constructor): Set selection mode to BROWSE. Fixes bug #162331. --- src/bookmarks/ephy-topics-selector.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c index 2e2102c59..a6fae1d99 100644 --- a/src/bookmarks/ephy-topics-selector.c +++ b/src/bookmarks/ephy-topics-selector.c @@ -1,3 +1,4 @@ + /* * Copyright (C) 2002-2004 Marco Pesenti Gritti * @@ -24,6 +25,7 @@ #include "ephy-debug.h" #include +#include static void ephy_topics_selector_class_init (EphyTopicsSelectorClass *klass); static void ephy_topics_selector_init (EphyTopicsSelector *editor); @@ -182,6 +184,7 @@ ephy_topics_selector_constructor (GType type, GObject *object; EphyTopicsSelector *selector; EphyTopicsSelectorPrivate *priv; + GtkTreeSelection *selection; object = parent_class->constructor (type, n_construct_properties, construct_params); @@ -201,6 +204,9 @@ ephy_topics_selector_constructor (GType type, ephy_node_view_set_sort (EPHY_NODE_VIEW (selector), G_TYPE_STRING, EPHY_NODE_KEYWORD_PROP_NAME, GTK_SORT_ASCENDING); + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (selector)); + gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); + return object; } -- cgit v1.2.3