[ease/text] [text] Prevent cursor from blinking when editing
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/text] [text] Prevent cursor from blinking when editing
- Date: Mon, 29 Nov 2010 14:31:41 +0000 (UTC)
commit 6f519c536192a26e6682934b36669db231607189
Author: Nate Stedman <natesm gmail com>
Date: Mon Nov 29 08:36:14 2010 -0500
[text] Prevent cursor from blinking when editing
Added blink stopping to backspace and text entry.
ease-core/ease-text-actor.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ease-core/ease-text-actor.vala b/ease-core/ease-text-actor.vala
index 2b2a5f0..5164219 100644
--- a/ease-core/ease-text-actor.vala
+++ b/ease-core/ease-text-actor.vala
@@ -132,6 +132,8 @@ public class Ease.TextActor : Actor
{
text.delete(cursor_index - 1);
cursor_index--;
+ cursor.opacity = 255;
+ cursor_timeline.rewind();
}
break;
@@ -154,6 +156,8 @@ public class Ease.TextActor : Actor
{
text.insert(key.to_string(), cursor_index);
cursor_index++;
+ cursor.opacity = 255;
+ cursor_timeline.rewind();
}
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]