Clarify docs around main loop vfuncs

Mention that the vfuncs are no longer used, and tweak the
wording around what g_application_run() does.

https://bugzilla.gnome.org/show_bug.cgi?id=665391
This commit is contained in:
Matthias Clasen 2011-12-07 14:36:56 -05:00
parent 70dacf83d2
commit 3d686e3d8f
2 changed files with 9 additions and 7 deletions

View File

@ -1246,8 +1246,8 @@ g_application_open (GApplication *application,
*
* If, after the above is done, the use count of the application is zero
* then the exit status is returned immediately. If the use count is
* non-zero then the mainloop is run until the use count falls to zero,
* at which point 0 is returned.
* non-zero then the default main context is iterated until the use count
* falls to zero, at which point 0 is returned.
*
* If the %G_APPLICATION_IS_SERVICE flag is set, then the exiting at
* use count of zero is delayed for a while (ie: the instance stays

View File

@ -81,11 +81,13 @@ struct _GApplication
* the calling instance
* @add_platform_data: invoked (locally) to add 'platform data' to be sent to
* the primary instance when activating, opening or invoking actions
* @quit_mainloop: invoked on the primary instance when the use count of the
* application drops to zero (and after any inactivity timeout, if
* requested)
* @run_mainloop: invoked on the primary instance from g_application_run()
* if the use-count is non-zero
* @quit_mainloop: Used to be invoked on the primary instance when the use
* count of the application drops to zero (and after any inactivity
* timeout, if requested). Not used anymore since 2.32
* @run_mainloop: Used to be invoked on the primary instance from
* g_application_run() if the use-count is non-zero. Since 2.32,
* GApplication is iterating the main context directly and is not
* using @run_mainloop anymore
*
* Since: 2.28
*/