summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-08-22 20:14:33 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-08-22 20:14:33 +0200
commita3bf979c21fcb36938798818a793d76e52e37f93 (patch)
tree916c6f584c06b9575159b87e53a5455d06b74862
parent9c1e15b337f0aae785b51da25ee532693cd75fca (diff)
downloadgmathlib-a3bf979c21fcb36938798818a793d76e52e37f93.tar.gz
gmathlib-a3bf979c21fcb36938798818a793d76e52e37f93.tar.bz2
* Ignore button press when not in editor mode
-rw-r--r--gmathview/gmathview.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmathview/gmathview.c b/gmathview/gmathview.c
index ccea3a5..3ad72a8 100644
--- a/gmathview/gmathview.c
+++ b/gmathview/gmathview.c
@@ -134,7 +134,11 @@ g_math_view_on_button_press (GtkWidget *widget, GdkEventButton *event)
GMathBoxed *container;
GMathViewPrivate *priv;
+ if (!g_math_view_get_editor_mode (G_MATH_VIEW (widget)))
+ return FALSE;
+
priv = G_MATH_VIEW_GET_PRIVATE (G_MATH_VIEW (widget));
+
if (event->button > 2 || !priv->boxed)
return FALSE;