Fix friends colors
This commit is contained in:
parent
3e82db03c0
commit
03aa335661
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user