Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/poll.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-16 03:04:31 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-02-16 03:04:31 (GMT)
commit041d010cfeae68aa243260deeabe7646f6542630 (patch)
treec8b63431d85b1f6579ca33d0a6126c14c83cc856 /poll.py
parent44c739e34e574943caae90e389303954fcd5d9e6 (diff)
Set border-color for entry boxes
Diffstat (limited to 'poll.py')
-rw-r--r--poll.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/poll.py b/poll.py
index 668ddb8..aa7f621 100644
--- a/poll.py
+++ b/poll.py
@@ -744,6 +744,8 @@ class PollBuilder(activity.Activity):
warn='title' in highlight))
entrybox = gtk.Entry()
entrybox.set_text(self._poll.title)
+ entrybox.modify_bg(gtk.STATE_INSENSITIVE,
+ style.COLOR_WHITE.get_gdk_color())
entrybox.connect('changed', self._entry_activate_cb, 'title')
hbox.append(hippo.CanvasWidget(widget=entrybox), hippo.PACK_EXPAND)
buildbox.append(hbox, hippo.PACK_EXPAND)
@@ -754,6 +756,8 @@ class PollBuilder(activity.Activity):
warn='question' in highlight))
entrybox = gtk.Entry()
entrybox.set_text(self._poll.question)
+ entrybox.modify_bg(gtk.STATE_INSENSITIVE,
+ style.COLOR_WHITE.get_gdk_color())
entrybox.connect('changed', self._entry_activate_cb, 'question')
hbox.append(hippo.CanvasWidget(widget=entrybox), hippo.PACK_EXPAND)
buildbox.append(hbox, hippo.PACK_EXPAND)
@@ -764,6 +768,8 @@ class PollBuilder(activity.Activity):
warn='maxvoters' in highlight))
entrybox = gtk.Entry()
entrybox.set_text(str(self._poll.maxvoters))
+ entrybox.modify_bg(gtk.STATE_INSENSITIVE,
+ style.COLOR_WHITE.get_gdk_color())
entrybox.connect('changed', self._entry_activate_cb, 'maxvoters')
hbox.append(hippo.CanvasWidget(widget=entrybox))
buildbox.append(hbox)
@@ -776,6 +782,8 @@ class PollBuilder(activity.Activity):
warn=str(choice) in highlight))
entrybox = gtk.Entry()
entrybox.set_text(self._poll.options[choice])
+ entrybox.modify_bg(gtk.STATE_INSENSITIVE,
+ style.COLOR_WHITE.get_gdk_color())
entrybox.connect('changed', self._entry_activate_cb, str(choice))
hbox.append(hippo.CanvasWidget(widget=entrybox), hippo.PACK_EXPAND)
buildbox.append(hbox, hippo.PACK_EXPAND)