[glib/glib-2-28] Small doc correction



commit bd0e8775b6d594630a441466e4994ba75ada0274
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 4 00:27:23 2011 -0500

    Small doc correction
    
    We don't actually pass @argc to local_command_line().

 gio/gapplication.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index a726e5f..f4a47e1 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1169,11 +1169,12 @@ g_application_open (GApplication  *application,
  *
  * First, the local_command_line() virtual function is invoked.
  * This function always runs on the local instance. It gets passed
- * pointers to @argc and @argv and is expected to remove the arguments
- * that it handled from @argv (shifting up remaining arguments, and
- * reducing @argc accordingly). See <xref linkend="gapplication-example-cmdline2"/> for an example. The last argument to local_command_line() is a
- * pointer to the @status variable which can used to set the exit
- * status that is returned from g_application_run().
+ * a pointer to a copy of @argv and is expected to remove the arguments
+ * that it handled (shifting up remaining arguments). See
+ * <xref linkend="gapplication-example-cmdline2"/> for an example.
+ * The last argument to local_command_line() is a pointer to the @status
+ * variable which can used to set the exit status that is returned from
+ * g_application_run().
  *
  * If local_command_line() returns %TRUE, the command line is expected
  * to be completely handled, including possibly registering as the primary



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]