From: Matthias Clasen Date: Tue, 2 May 2023 17:17:41 +0000 (-0400) Subject: Expand gtk_init docs X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~318^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=27b0321decbd203ef85bea0071c185b8c486797e;p=gtk4.git Expand gtk_init docs Make it clear that some aspects of GApplication functionality happen before startup. Fixes: #5781 --- diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 85f90f1e4b..9c07e3d652 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -637,8 +637,10 @@ gtk_init_check (void) * applications. It will initialize everything needed to operate the * toolkit. * - * If you are using `GtkApplication`, you don't have to call this - * function; the `GApplication::startup` handler does it for you. + * If you are using `GtkApplication`, you usually don't have to call this + * function; the `GApplication::startup` handler does it for you. Though, + * if you are using GApplication methods that will be invoked before `startup`, + * such as `local_command_line`, you may need to initialize stuff explicitly. * * This function will terminate your program if it was unable to * initialize the windowing system for some reason. If you want