Re: Re-attaching tab to notebook via "close" event
- From: richard boaz <ivor boaz gmail com>
- To: Ryan Taylor <ryta1203 gmail com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Re-attaching tab to notebook via "close" event
- Date: Thu, 11 Jul 2013 23:35:02 -0500
hi,
connect a callback to the "delete-event" associated with the new window. you are keeping track of which tabs are where at any given moment, so when you receive the "delete-event" callback, simply move the tabs found in that window back over to the notebook in the original window.
it is a question of intercepting the the widget destroy event on the window before GTK+ has a chance to issue destroy events for all its child widgets.. Re-parenting your notebook tabs before they are issued destroy events is key.
richard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]