GNOME Bugzilla – Bug 670485
Simplify session API
Last modified: 2012-02-21 00:32:01 UTC
- add g_application_quit() - remove the quit signal from GtkApplication and call g_application_quit() directly - remove the session-ending API
Created attachment 208063 [details] [review] GApplication: add g_application_quit() A long requested feature; this quits the application immediately, ignoring the hold count.
Created attachment 208064 [details] [review] GtkApplication: remove end session API This seems a bit "too powerful" and unlikely to be used by most applications. Remove it from now, until someone comes up with a strong desire for it.
Created attachment 208065 [details] [review] GtkApplication: simplify session quit handling Instead of firing a 'quit' signal and expecting the application to do something that will cause it to quit, just call the new g_application_quit() API for ourselves.
Review of attachment 208063 [details] [review]: Looks fine to me ::: gio/gapplication.c @@ +1720,3 @@ +void +g_application_quit (GApplication *application) +{ A g_return_if_fail would be customary here
Created attachment 208071 [details] [review] bloatpad: adjust to G(tk)Application 'quit' change
Review of attachment 208064 [details] [review]: I already agreed to this in the kitchen.
Created attachment 208072 [details] [review] GApplication: add g_application_quit() A long requested feature; this quits the application immediately, ignoring the hold count.
Review of attachment 208065 [details] [review]: Agreed to this one too. I expect that we will have requests for the signal, but we can wait for it.
Comment on attachment 208072 [details] [review] GApplication: add g_application_quit() Attachment 208072 [details] pushed as ed51975 - GApplication: add g_application_quit()
Comment on attachment 208064 [details] [review] GtkApplication: remove end session API Attachment 208064 [details] pushed as 659c713 - GtkApplication: remove end session API
Review of attachment 208071 [details] [review]: ok
Comment on attachment 208065 [details] [review] GtkApplication: simplify session quit handling Attachment 208065 [details] pushed as ef2df58 - GtkApplication: simplify session quit handling
Attachment 208071 [details] pushed as 8ec0cfd - bloatpad: adjust to G(tk)Application 'quit' change