diff options
Diffstat (limited to 'cardtable.py')
-rw-r--r-- | cardtable.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cardtable.py b/cardtable.py index b2afd5c..78f16c8 100644 --- a/cardtable.py +++ b/cardtable.py @@ -37,9 +37,7 @@ class CardTable(Gtk.EventBox): 'card-flipped': (GObject.SignalFlags.RUN_FIRST, None, [int, GObject.TYPE_PYOBJECT]), 'card-highlighted': (GObject.SignalFlags.RUN_FIRST, - None, [int, GObject.TYPE_PYOBJECT]), - 'resize-table': (GObject.SignalFlags.RUN_FIRST, - None, []), } + None, [int, GObject.TYPE_PYOBJECT]), } def __init__(self): Gtk.EventBox.__init__(self) @@ -80,11 +78,9 @@ class CardTable(Gtk.EventBox): self.set_size_request(width, height) self._workspace_size = min(width, height) if self.data: - if change: - self.change_game(None, self.data, self.cards_data) - else: - self.load_game(None, self.data, self.cards_data) - self.emit('resize-table') + self.card_size = self.get_card_size(self.size) + for child in self.table.get_children(): + child.resize(self.card_size) def _allocate_cb(self, widget, allocation): size = allocation.height |