aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-03-16 07:28:20 +0800
committerXan Lopez <xan@src.gnome.org>2003-03-16 07:28:20 +0800
commitcbce0224b85bac0df28964fdc2b97bd3c9ff43e5 (patch)
treed601b0520f27c353edc2e9c6f490c09a08004aa7
parenta49c85f4678d4b9edb19725b6c2168dc706d5b54 (diff)
downloadgsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar.gz
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar.bz2
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar.lz
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar.xz
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.tar.zst
gsoc2013-epiphany-cbce0224b85bac0df28964fdc2b97bd3c9ff43e5.zip
Put the bookmark view in hinted mode. Fix multiple selection actions in
Put the bookmark view in hinted mode. Fix multiple selection actions in the Bookmark Editor.
-rw-r--r--ChangeLog13
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c4
-rw-r--r--src/bookmarks/ephy-node-view.c11
-rw-r--r--src/bookmarks/ephy-node-view.h3
4 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0649feea5..45e2aa4b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2003-03-15 Xan Lopez <xan@masilla.org>
+
+ * src/bookmarks/ephy-bookmarks-editor.c:
+ (ephy_bookmarks_editor_construct):
+
+ Put the bookmark view in hinted mode.
+
+ * src/bookmarks/ephy-node-view.c: (ephy_node_view_button_press_cb),
+ (ephy_node_view_enable_drag_source), (ephy_node_view_set_hinted):
+ * src/bookmarks/ephy-node-view.h:
+
+ Fix multiple selection actions in the Bookmark Editor.
+
2003-03-15 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/ephy-embed-persist.c: (ephy_embed_persist_init),
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index bac2591cd..2a0ba3352 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -690,7 +690,8 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
node = ephy_bookmarks_get_keywords (editor->priv->bookmarks);
/* Keywords View */
- key_view = ephy_node_view_new (node, NULL);
+ key_view = ephy_node_view_new (node, NULL);
+ ephy_node_view_enable_drag_source (key_view);
ephy_node_view_set_browse_mode (key_view);
ephy_node_view_add_column (key_view, _("Topics"),
EPHY_TREE_MODEL_NODE_COL_KEYWORD, TRUE);
@@ -717,6 +718,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
/* Bookmarks View */
bm_view = ephy_node_view_new (node, editor->priv->bookmarks_filter);
+ ephy_node_view_set_hinted (bm_view, TRUE);
ephy_node_view_enable_drag_source (bm_view);
ephy_node_view_add_icon_column (bm_view, EPHY_TREE_MODEL_NODE_COL_ICON);
ephy_node_view_add_column (bm_view, _("Bookmarks"),
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c
index b738adc7b..2782e2a37 100644
--- a/src/bookmarks/ephy-node-view.c
+++ b/src/bookmarks/ephy-node-view.c
@@ -258,6 +258,9 @@ ephy_node_view_button_press_cb (GtkTreeView *treeview,
if (event->button == 3)
{
g_signal_emit (G_OBJECT (view), ephy_node_view_signals[SHOW_POPUP], 0);
+ /* the event is handled, don't propagate it further (we avoid
+ * changing the view with the right click this way) */
+ return TRUE;
}
return FALSE;
@@ -636,3 +639,11 @@ ephy_node_view_enable_drag_source (EphyNodeView *view)
egg_tree_multi_drag_add_drag_support (GTK_TREE_VIEW (view->priv->treeview));
ephy_dnd_enable_model_drag_source (GTK_WIDGET (view->priv->treeview));
}
+
+void
+ephy_node_view_set_hinted (EphyNodeView *view, gboolean hinted)
+{
+ g_return_if_fail (view != NULL);
+
+ gtk_tree_view_set_rules_hint (view->priv->treeview, hinted);
+}
diff --git a/src/bookmarks/ephy-node-view.h b/src/bookmarks/ephy-node-view.h
index 3fa1690d9..89a84f72c 100644
--- a/src/bookmarks/ephy-node-view.h
+++ b/src/bookmarks/ephy-node-view.h
@@ -80,6 +80,9 @@ void ephy_node_view_select_node (EphyNodeView *view,
void ephy_node_view_enable_drag_source (EphyNodeView *view);
+void ephy_node_view_set_hinted (EphyNodeView *view,
+ gboolean hinted);
+
G_END_DECLS
#endif /* EPHY_NODE_VIEW_H */