Set STATE_INSENSITIVE for toolbarbox pages

This commit is contained in:
Aleksey Lim 2009-08-06 11:32:44 +00:00
parent d5999d34ce
commit d0485cb515
2 changed files with 2 additions and 3 deletions

View File

@ -150,8 +150,7 @@ class TitleEntry(gtk.ToolItem):
def modify_bg(self, state, color):
gtk.ToolItem.modify_bg(self, state, color)
if state == gtk.STATE_NORMAL:
self.entry.modify_bg(gtk.STATE_INSENSITIVE, color)
self.entry.modify_bg(state, color)
def __jobject_updated_cb(self, jobject):
self.entry.set_text(jobject['title'])

View File

@ -257,7 +257,7 @@ def _setup_page(page_widget, color, hpad):
page.modify_bg(gtk.STATE_NORMAL, color)
if isinstance(page, gtk.Container):
for i in page.get_children():
i.modify_bg(gtk.STATE_NORMAL, color)
i.modify_bg(gtk.STATE_INSENSITIVE, color)
page_widget.modify_bg(gtk.STATE_NORMAL, color)
page_widget.modify_bg(gtk.STATE_PRELIGHT, color)