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 On Thu, Jul 11, 2013 at 8:50 AM, Ryan Taylor <ryta1...@gmail.com> wrote: > If I take a page from a notebook (a tab from a notebook) and move it, it > creates a window. > > What I want is to take all the pages from the new window and re-insert > them into the old notebook when a close event occurs (ie the X exit or > File->Close). > > What is the best way to accomplish this? > > Thanks. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-list > >
_______________________________________________ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list