aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-06 07:55:13 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-06 07:55:13 +0800
commita4184d85f9020f558d80d8ef0531af9e2c3adc8f (patch)
tree5b35e1e4d5ebfb405158514fda7747bebd668b58
parent506921ce725352e13f62990a40f2b77f5d953a0f (diff)
downloadgsoc2013-epiphany-a4184d85f9020f558d80d8ef0531af9e2c3adc8f.tar.gz
gsoc2013-epiphany-a4184d85f9020f558d80d8ef0531af9e2c3adc8f.tar.zst
gsoc2013-epiphany-a4184d85f9020f558d80d8ef0531af9e2c3adc8f.zip
Do not unselect all on single selection mode, to not generate useless node
2003-10-06 Marco Pesenti Gritti <marco@gnome.org> * lib/widgets/ephy-node-view.c: (did_not_drag): Do not unselect all on single selection mode, to not generate useless node selection changes. * src/ephy-history-window.c: (site_node_selected_cb): Do not refilter if the new selected node is the same as the old one.
-rw-r--r--ChangeLog12
-rw-r--r--lib/widgets/ephy-node-view.c6
-rw-r--r--src/ephy-history-window.c2
3 files changed, 19 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 277e75942..e193e30bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2003-10-06 Marco Pesenti Gritti <marco@gnome.org>
+
+ * lib/widgets/ephy-node-view.c: (did_not_drag):
+
+ Do not unselect all on single selection mode, to not generate
+ useless node selection changes.
+
+ * src/ephy-history-window.c: (site_node_selected_cb):
+
+ Do not refilter if the new selected node is the same
+ as the old one.
+
2003-10-03 Christian Persch <chpe@cvs.gnome.org>
* lib/egg/egg-toolbars-model.c: (safe_save_xml),
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 1c36a7768..435974b5e 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -739,7 +739,11 @@ did_not_drag (EphyNodeView *view,
gtk_tree_selection_path_is_selected (selection, path) &&
!button_event_modifies_selection (event))
{
- gtk_tree_selection_unselect_all (selection);
+ if (gtk_tree_selection_get_mode (selection) == GTK_SELECTION_MULTIPLE)
+ {
+ gtk_tree_selection_unselect_all (selection);
+ }
+
gtk_tree_selection_select_path (selection, path);
}
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 72de063d9..613218949 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -966,6 +966,8 @@ site_node_selected_cb (EphyNodeView *view,
{
EphyNode *pages;
+ if (editor->priv->selected_site == node) return;
+
editor->priv->selected_site = node;
if (node == NULL)