[gtk+/gtk-3-22] ToolItem: Annotate menu proxy item as nullable
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] ToolItem: Annotate menu proxy item as nullable
- Date: Sun, 3 Sep 2017 10:00:42 +0000 (UTC)
commit ea73e0e0bd19daec8eaccdab1fb1d46adfa6a69f
Author: Daniel Boles <dboles src gnome org>
Date: Sun Sep 3 10:39:58 2017 +0100
ToolItem: Annotate menu proxy item as nullable
It can be NULL. ::create-menu-proxy gave an example of when a NULL proxy
menu item could be useful, but the accessors did not annotate it as such.
gtk/gtktoolitem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index c877985..9d14591 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -1299,7 +1299,7 @@ gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item)
* @menu_item_ids must match ensures that a #GtkToolItem
* will not inadvertently change a menu item that they did not create.
*
- * Returns: (transfer none): The #GtkMenuItem passed to
+ * Returns: (transfer none) (nullable): The #GtkMenuItem passed to
* gtk_tool_item_set_proxy_menu_item(), if the @menu_item_ids
* match.
*
@@ -1349,7 +1349,7 @@ gtk_tool_item_rebuild_menu (GtkToolItem *tool_item)
/**
* gtk_tool_item_set_proxy_menu_item:
- * @tool_item: a #GtkToolItem
+ * @tool_item: (nullable): a #GtkToolItem
* @menu_item_id: a string used to identify @menu_item
* @menu_item: a #GtkMenuItem to be used in the overflow menu
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]