projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a12747
)
text: Bubble up a click and quit early for just static text
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Fri, 30 Mar 2012 15:19:02 +0000
(11:19 -0400)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Fri, 13 Apr 2012 18:34:46 +0000
(14:34 -0400)
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
patch
|
blob
|
history
diff --git
a/clutter/clutter-text.c
b/clutter/clutter-text.c
index
b799217
..
ed03947
100644
(file)
--- 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