[clutter/clutter-1.10] text: Bubble up a click and quit early for just static text
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.10] text: Bubble up a click and quit early for just static text
- Date: Mon, 16 Apr 2012 20:51:19 +0000 (UTC)
commit 48bfac333df2f872cc58a4a41b2ed039465295f6
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]