GNOME Bugzilla – Bug 643934
GApplication lacking a logical dual for the ::startup signal
Last modified: 2011-09-14 17:47:31 UTC
Created attachment 182535 [details] [review] Patch introducing ::shutdown for gapplication.c/h GApplication's ::startup signal is convenient place to fully initialize a Primary instance. What is missing is the logical duel to undo the actions preformed in ::startup. Enter the ::shutdown signal. The signal is emitted only when the GApplication is registered immediately after the mainloop attempts to run. I have prepared two patches making the necessary changes for the ::shutdown signal.
Created attachment 196529 [details] [review] GApplication: introduce ::shutdown Introduce ::shutdown as a dual to ::startup.
The only change was to move the shutdown pointer to the end of the vtable to avoid the ABI change.
Thanks for the suggestion, Brian (and for the patch).