Hide the group label while editing the group

This commit is contained in:
Stephen Boddy 2012-06-24 20:22:21 +02:00
parent 1e68ae9107
commit 3951acedf6
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,7 @@ class Titlebar(gtk.EventBox):
def create_group(self): def create_group(self):
"""Create a new group""" """Create a new group"""
self.groupentry.show() self.groupentry.show()
self.grouplabel.hide()
self.groupentry.grab_focus() self.groupentry.grab_focus()
self.update_visibility() self.update_visibility()
@ -241,6 +242,7 @@ class Titlebar(gtk.EventBox):
"""Hide the group name entry""" """Hide the group name entry"""
self.groupentry.set_text('') self.groupentry.set_text('')
self.groupentry.hide() self.groupentry.hide()
self.grouplabel.show()
self.get_parent().grab_focus() self.get_parent().grab_focus()
def groupentry_activate(self, widget): def groupentry_activate(self, widget):