[vala] gio-2.0: add a few nullable from Menu



commit 568e2bb3936d40e941f299b86c8f2d17c9a0e345
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Jan 6 19:41:25 2012 +0100

    gio-2.0: add a few nullable from Menu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667431

 vapi/gio-2.0.vapi                      |   40 ++++++++++++++++----------------
 vapi/packages/gio-2.0/gio-2.0.metadata |   30 ++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 20 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 3e8602d..36ddc8a 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1128,25 +1128,25 @@ namespace GLib {
 	public class Menu : GLib.MenuModel {
 		[CCode (has_construct_function = false)]
 		public Menu ();
-		public void append (string label, string detailed_action);
+		public void append (string? label, string? detailed_action);
 		public void append_item (GLib.MenuItem item);
-		public void append_section (string label, GLib.MenuModel section);
-		public void append_submenu (string label, GLib.MenuModel submenu);
+		public void append_section (string? label, GLib.MenuModel section);
+		public void append_submenu (string? label, GLib.MenuModel submenu);
 		public void freeze ();
-		public void insert (int position, string label, string detailed_action);
+		public void insert (int position, string? label, string? detailed_action);
 		public void insert_item (int position, GLib.MenuItem item);
-		public void insert_section (int position, string label, GLib.MenuModel section);
-		public void insert_submenu (int position, string label, GLib.MenuModel submenu);
+		public void insert_section (int position, string? label, GLib.MenuModel section);
+		public void insert_submenu (int position, string? label, GLib.MenuModel submenu);
 		public static unowned GLib.HashTable markup_parser_end (GLib.MarkupParseContext context);
 		public static unowned GLib.Menu markup_parser_end_menu (GLib.MarkupParseContext context);
 		public static void markup_parser_start (GLib.MarkupParseContext context, string domain, GLib.HashTable objects);
 		public static void markup_parser_start_menu (GLib.MarkupParseContext context, string domain, GLib.HashTable objects);
 		public static void markup_print_stderr (GLib.MenuModel model);
 		public static unowned GLib.StringBuilder markup_print_string (GLib.StringBuilder str, GLib.MenuModel model, int indent, int tabstop);
-		public void prepend (string label, string detailed_action);
+		public void prepend (string? label, string? detailed_action);
 		public void prepend_item (GLib.MenuItem item);
-		public void prepend_section (string label, GLib.MenuModel section);
-		public void prepend_submenu (string label, GLib.MenuModel submenu);
+		public void prepend_section (string? label, GLib.MenuModel section);
+		public void prepend_submenu (string? label, GLib.MenuModel submenu);
 		public void remove (int position);
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
@@ -1161,20 +1161,20 @@ namespace GLib {
 	[CCode (cheader_filename = "gio/gio.h")]
 	public class MenuItem : GLib.Object {
 		[CCode (has_construct_function = false)]
-		public MenuItem (string label, string detailed_action);
+		public MenuItem (string? label, string? detailed_action);
 		[CCode (has_construct_function = false)]
-		public MenuItem.section (string label, GLib.MenuModel section);
-		public void set_action_and_target (string action, string format_string);
-		public void set_action_and_target_value (string action, GLib.Variant target_value);
-		public void set_attribute (string attribute, string format_string);
-		public void set_attribute_value (string attribute, GLib.Variant value);
+		public MenuItem.section (string? label, GLib.MenuModel section);
+		public void set_action_and_target (string? action, string? format_string);
+		public void set_action_and_target_value (string? action, GLib.Variant? target_value);
+		public void set_attribute (string attribute, string? format_string);
+		public void set_attribute_value (string attribute, GLib.Variant? value);
 		public void set_detailed_action (string detailed_action);
-		public void set_label (string label);
-		public void set_link (string link, GLib.MenuModel model);
-		public void set_section (GLib.MenuModel section);
-		public void set_submenu (GLib.MenuModel submenu);
+		public void set_label (string? label);
+		public void set_link (string link, GLib.MenuModel? model);
+		public void set_section (GLib.MenuModel? section);
+		public void set_submenu (GLib.MenuModel? submenu);
 		[CCode (has_construct_function = false)]
-		public MenuItem.submenu (string label, GLib.MenuModel submenu);
+		public MenuItem.submenu (string? label, GLib.MenuModel submenu);
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public class MenuLinkIter : GLib.Object {
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index a5ca226..10b5463 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -485,3 +485,33 @@ g_simple_action_new.parameter_type nullable="1"
 g_simple_action_new_stateful.parameter_type nullable="1"
 GSimpleAction::activate.p0 nullable="1"
 GSimpleAction::change_state.p0 nullable="1"
+
+g_menu_insert.label nullable="1"
+g_menu_insert.detailed_action nullable="1"
+g_menu_prepend.label nullable="1"
+g_menu_prepend.detailed_action nullable="1"
+g_menu_append.label nullable="1"
+g_menu_append.detailed_action nullable="1"
+
+g_menu_insert_section.label nullable="1"
+g_menu_prepend_section.label nullable="1"
+g_menu_append_section.label nullable="1"
+
+g_menu_insert_submenu.label nullable="1"
+g_menu_prepend_submenu.label nullable="1"
+g_menu_append_submenu.label nullable="1"
+
+g_menu_item_set_attribute_value.value nullable="1"
+g_menu_item_set_attribute.format_string nullable="1"
+g_menu_item_set_link.model nullable="1"
+g_menu_item_set_label.label nullable="1"
+g_menu_item_set_submenu.submenu nullable="1"
+g_menu_item_set_section.section nullable="1"
+g_menu_item_set_action_and_target_value.action nullable="1"
+g_menu_item_set_action_and_target_value.target_value nullable="1"
+g_menu_item_set_action_and_target.action nullable="1"
+g_menu_item_set_action_and_target.format_string nullable="1"
+g_menu_item_new.label nullable="1"
+g_menu_item_new.detailed_action nullable="1"
+g_menu_item_new_submenu.label nullable="1"
+g_menu_item_new_section.label nullable="1"



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