[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (7d7b21bc0a770553fdf6cd70bb3eeab4c06f7071)
The branch, master has been updated
via 7d7b21bc0a770553fdf6cd70bb3eeab4c06f7071 (commit)
from a3b303c83ceb535e6068623b77eb10b14c0ca97a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/ghid-layer-selector.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit 7d7b21bc0a770553fdf6cd70bb3eeab4c06f7071
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Filter out double clicks on the layer selector widget
This makes things behave a little nicer if you click to toggle a layer's
visibility twice in quick succession. Previously, this would be
interpreted as a double-click, causing an extra synthetic click event
which would toggle the visibility an extra time.
:100644 100644 a2bb3ff... 639e2be... M src/hid/gtk/ghid-layer-selector.c
=========
Changes
=========
commit 7d7b21bc0a770553fdf6cd70bb3eeab4c06f7071
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: Filter out double clicks on the layer selector widget
This makes things behave a little nicer if you click to toggle a layer's
visibility twice in quick succession. Previously, this would be
interpreted as a double-click, causing an extra synthetic click event
which would toggle the visibility an extra time.
diff --git a/src/hid/gtk/ghid-layer-selector.c b/src/hid/gtk/ghid-layer-selector.c
index a2bb3ff..639e2be 100644
--- a/src/hid/gtk/ghid-layer-selector.c
+++ b/src/hid/gtk/ghid-layer-selector.c
@@ -193,8 +193,11 @@ button_press_cb (GHidLayerSelector *ls, GdkEventButton *event)
GtkTreeViewColumn *column;
GtkTreePath *path;
- /* Ignore all but left-clicks */
- if (event->button != 1)
+ /* Ignore the synthetic presses caused by double and tripple clicks, and
+ * also ignore all but left-clicks
+ */
+ if (event->type != GDK_BUTTON_PRESS ||
+ event->button != 1)
return TRUE;
if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (ls),
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs