diff options
Diffstat (limited to 'cardtable.py')
-rw-r--r-- | cardtable.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cardtable.py b/cardtable.py index ad292bc..b2afd5c 100644 --- a/cardtable.py +++ b/cardtable.py @@ -37,7 +37,9 @@ 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]), } + None, [int, GObject.TYPE_PYOBJECT]), + 'resize-table': (GObject.SignalFlags.RUN_FIRST, + None, []), } def __init__(self): Gtk.EventBox.__init__(self) @@ -82,6 +84,7 @@ class CardTable(Gtk.EventBox): self.change_game(None, self.data, self.cards_data) else: self.load_game(None, self.data, self.cards_data) + self.emit('resize-table') def _allocate_cb(self, widget, allocation): size = allocation.height |