[clutter/clutter-1.14] text: relayout on cursor visibility change
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.14] text: relayout on cursor visibility change
- Date: Thu, 20 Jun 2013 17:04:06 +0000 (UTC)
commit 23f9444795d7a3115d187cd0196421c4d642a62f
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Tue Jun 18 16:37:31 2013 -0700
text: relayout on cursor visibility change
When the cursor visibility changes, we have to relayout the ClutterText
actor instead of just redrawing it - as the cursor changes the
PangoLayout size, a size request cycle is needed.
https://bugzilla.gnome.org/show_bug.cgi?id=702610
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 9b8b14d..5606125 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -4605,7 +4605,8 @@ clutter_text_set_cursor_visible (ClutterText *self,
{
priv->cursor_visible = cursor_visible;
- clutter_text_queue_redraw (CLUTTER_ACTOR (self));
+ clutter_text_dirty_cache (self);
+ clutter_actor_queue_relayout (CLUTTER_ACTOR (self));
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURSOR_VISIBLE]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]