[kupfer] ui: Make sure the preedit box has focus-line-width = 0



commit 69d52785eef10d1fa6d3ac78881e3a0225f453dd
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Apr 7 05:48:03 2011 +0200

    ui: Make sure the preedit box has focus-line-width = 0

 kupfer/ui/browser.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 5b00be9..b7f324a 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -951,6 +951,15 @@ class Interface (gobject.GObject):
 		self.entry = gtk.Entry()
 		self.label = gtk.Label()
 		self.preedit = gtk.Entry()
+		## make sure we lose the preedit focus ring
+		self.preedit.set_name("kupfer-preedit")
+		gtk.rc_parse_string("""
+		style "kupferpreedit"
+		{
+			GtkEntry :: focus-line-width = 0
+		}
+		widget "*.%s" style "kupferpreedit"
+		""" % (self.preedit.path(), ))
 
 		self.current = None
 



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