diff options
Diffstat (limited to 'scoreboard.py')
-rw-r--r-- | scoreboard.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/scoreboard.py b/scoreboard.py index 9882ad2..5ff3f21 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -25,7 +25,6 @@ class Scoreboard(Gtk.EventBox): def __init__(self): Gtk.EventBox.__init__(self) self.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse('#666666')) - self.connect('size-allocate', self._allocate_cb) self._width = self.get_allocation().width self.players = {} self.current_buddy = None @@ -35,12 +34,6 @@ class Scoreboard(Gtk.EventBox): self.add(self.hbox) self.show_all() - def _allocate_cb(self, widget, allocation): - # check if the width changes (when the screen rotates - if allocation.width != self._width: - self._width = allocation.width - self.reset(widget) - def change_game(self, widget, data, grid): for buddy in self.players.keys(): self.players[buddy].change_game(len(grid)) |