From 03aa33566162601d65fda9e7d137234b06b52057 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 16:27:17 +0200 Subject: [PATCH] Fix friends colors --- shell/Friends.py | 2 +- shell/frame/BottomPanel.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/shell/Friends.py b/shell/Friends.py index 88189f54..6beca663 100644 --- a/shell/Friends.py +++ b/shell/Friends.py @@ -71,7 +71,7 @@ class Friends(gobject.GObject): for friend in self: section = friend.get_name() 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') cp.write(fileobject) diff --git a/shell/frame/BottomPanel.py b/shell/frame/BottomPanel.py index 9c53be4c..caadc78b 100644 --- a/shell/frame/BottomPanel.py +++ b/shell/frame/BottomPanel.py @@ -77,4 +77,9 @@ class BottomPanel(GridGroup): def add_invite(self, invite): item = InviteItem(invite) 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)