diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-05-02 13:17:41 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-05-02 13:18:49 -0400 |
commit | 27b0321decbd203ef85bea0071c185b8c486797e (patch) | |
tree | f10ff2079898c6797f633dd16c8023e48fe857f1 /gtk/gtkmain.c | |
parent | 538605eccb3be95a8eb6cffc9f67182ff1bdd7cf (diff) | |
download | gtk+-27b0321decbd203ef85bea0071c185b8c486797e.tar.gz |
Expand gtk_init docs
Make it clear that some aspects of GApplication
functionality happen before startup.
Fixes: #5781
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 |