[clutter] text: We still have to paint the actor if the cursor is visible



commit 41bd15226f6fcbd373e4dc41888dbfa6aa930d3d
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Sep 15 04:50:43 2011 +0100

    text: We still have to paint the actor if the cursor is visible
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659116

 clutter/clutter-text.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 0eef0f2..7c9e4dc 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]