aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2012-10-08 00:11:34 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2012-10-08 00:12:58 +0200
commit6a24ede141b5168ba80b928941f00aa5eed871ea (patch)
tree305c8d78145c27fed4d1fdc35fdb1e227ee9e2aa /liblogdiag
parent6c925b7092c32181c59136e8658b2af45c49a35f (diff)
downloadlogdiag-6a24ede141b5168ba80b928941f00aa5eed871ea.tar.gz
logdiag-6a24ede141b5168ba80b928941f00aa5eed871ea.tar.xz
logdiag-6a24ede141b5168ba80b928941f00aa5eed871ea.zip
Ignore double/triple clicks in LdDiagramView.
Fixes fast rotating.
Diffstat (limited to 'liblogdiag')
-rw-r--r--liblogdiag/ld-diagram-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c
index 1564c6b..1d2764c 100644
--- a/liblogdiag/ld-diagram-view.c
+++ b/liblogdiag/ld-diagram-view.c
@@ -2232,7 +2232,8 @@ on_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
LdDiagramView *self;
self = LD_DIAGRAM_VIEW (widget);
- if (!self->priv->diagram)
+ if (!self->priv->diagram
+ || event->type != GDK_BUTTON_PRESS)
return FALSE;
point.x = event->x;