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
This commit is contained in:
Jasper St. Pierre 2012-03-30 11:19:02 -04:00
parent 2a12747ae3
commit 164c6ee741

View File

@ -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