mirror of
https://github.com/NaN-tic/tryton-gtk2.git
synced 2023-12-14 03:12:58 +01:00
Run but_close when closing tab from tab button
This commit is contained in:
parent
1c54c7ac85
commit
f9a671022b
1 changed files with 6 additions and 0 deletions
|
@ -796,6 +796,12 @@ class Main(object):
|
|||
self.buttons['but_attach'].set_label(label)
|
||||
|
||||
def _sig_remove_book(self, widget, page_widget):
|
||||
for page in self.pages:
|
||||
if page.widget == page_widget:
|
||||
if 'but_close' in page.handlers:
|
||||
res = page.handlers['but_close']()
|
||||
if not res:
|
||||
return
|
||||
self._win_del(page_widget)
|
||||
|
||||
def _win_del(self, page_widget=None):
|
||||
|
|
Loading…
Reference in a new issue