Fix friends colors

This commit is contained in:
Marco Pesenti Gritti 2006-09-08 16:27:17 +02:00
parent 3e82db03c0
commit 03aa335661
2 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Friends(gobject.GObject):
for friend in self: for friend in self:
section = friend.get_name() section = friend.get_name()
cp.add_section(section) cp.add_section(section)
cp.set(section, 'color', friend.get_color().get_fill_color()) cp.set(section, 'color', friend.get_color().to_string())
fileobject = open(self._path, 'w') fileobject = open(self._path, 'w')
cp.write(fileobject) cp.write(fileobject)

View File

@ -77,4 +77,9 @@ class BottomPanel(GridGroup):
def add_invite(self, invite): def add_invite(self, invite):
item = InviteItem(invite) item = InviteItem(invite)
item.connect('clicked', self.__invite_clicked_cb) item.connect('clicked', self.__invite_clicked_cb)
col = self.get_n_children() + 1
constraints = GridConstraints(col, 0, 1, 1, 6)
self._layout.set_constraints(item, constraints)
self.add_child(item) self.add_child(item)