[clutter] text: Bubble up a click and quit early for just static text
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] text: Bubble up a click and quit early for just static text
- Date: Fri, 13 Apr 2012 18:35:17 +0000 (UTC)
commit 164c6ee74187b10df6cdf22782d9071c28d787b2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 30 11:19:02 2012 -0400
text: Bubble up a click and quit early for just static text
Static text shouldn't need a cursor position or anything like that,
and it always eats a button press event.
https://bugzilla.gnome.org/show_bug.cgi?id=673190
clutter/clutter-text.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index b799217..ed03947 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -1800,6 +1800,8 @@ clutter_text_button_press (ClutterActor *actor,
/* we'll steal keyfocus if we need it */
if (priv->editable || priv->selectable)
clutter_actor_grab_key_focus (actor);
+ else
+ return CLUTTER_EVENT_PROPAGATE;
/* if the actor is empty we just reset everything and not
* set up the dragging of the selection since there's nothing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]