summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-09-15 04:50:43 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-09-15 10:43:04 +0100
commit41bd15226f6fcbd373e4dc41888dbfa6aa930d3d (patch)
treed1f918ea9905ffdffdd72a12cfd64a8e0c7f7bdb
parent1883ee13f986f6828f7a4d9bc6f867cce718caa4 (diff)
downloadclutter-41bd15226f6fcbd373e4dc41888dbfa6aa930d3d.tar.gz
text: We still have to paint the actor if the cursor is visible
https://bugzilla.gnome.org/show_bug.cgi?id=659116
-rw-r--r--clutter/clutter-text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 0eef0f271..7c9e4dcf9 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -2009,7 +2009,8 @@ clutter_text_paint (ClutterActor *self)
}
/* don't bother painting an empty text actor */
- if (priv->text[0] == '\0')
+ if (priv->text[0] == '\0' &&
+ (!priv->editable || !priv->cursor_visible))
return;
clutter_actor_get_allocation_box (self, &alloc);