text: Bubble up a click and quit early for just static text
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 30 Mar 2012 15:19:02 +0000 (11:19 -0400)
committerJasper 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

index b799217..ed03947 100644 (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