Set STATE_INSENSITIVE for toolbarbox pages
This commit is contained in:
parent
d5999d34ce
commit
d0485cb515
@ -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'])
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user