[unique] Add instrospection annotation (allow-none)



commit 3455fc683022e00f646f66d6681864683c35eb8b
Author: Luciana Fujii Pontello <luciana fujii eti br>
Date:   Wed Feb 16 20:53:35 2011 -0200

    Add instrospection annotation (allow-none)
    
    When parameter can be null, use g-i annotation (allow-none).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623481

 unique/uniqueapp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/unique/uniqueapp.c b/unique/uniqueapp.c
index 2c89334..911d2b7 100644
--- a/unique/uniqueapp.c
+++ b/unique/uniqueapp.c
@@ -496,7 +496,7 @@ unique_app_init (UniqueApp *app)
 /**
  * unique_app_new:
  * @name: the name of the application's instance
- * @startup_id: the startup notification id, or %NULL
+ * @startup_id: (allow-none): the startup notification id, or %NULL
  *
  * Creates a new #UniqueApp instance for @name passing a start-up notification
  * id @startup_id.  The name must be a unique identifier for the application,
@@ -556,7 +556,7 @@ unique_app_add_commands_valist (UniqueApp   *app,
 /**
  * unique_app_new_with_commands:
  * @name: the name of the application
- * @startup_id: startup notification id, or %NULL
+ * @startup_id: (allow-none): startup notification id, or %NULL
  * @first_command_name: first custom command
  * @Varargs: %NULL terminated list of command names and command ids
  *
@@ -607,7 +607,7 @@ unique_app_is_running (UniqueApp *app)
  * unique_app_send_message:
  * @app: a #UniqueApp
  * @command_id: command to send
- * @message_data: #UniqueMessageData, or %NULL
+ * @message_data: (allow-none): #UniqueMessageData, or %NULL
  *
  * Sends @command to a running instance of @app. If you need to pass data
  * to the instance, you should create a #UniqueMessageData object using



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