]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Make Action.state, state_type and parameter_type nullable
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 6 Mar 2014 20:26:59 +0000 (21:26 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 6 Mar 2014 20:26:59 +0000 (21:26 +0100)
Fixes bug 725367

vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index 5abd09e514619ebd76c9a11c6cbc57d57cc243e7..ea96a3b4801f12330b6fbdc9615e1bf39c092714 100644 (file)
@@ -2452,9 +2452,9 @@ namespace GLib {
                public static string print_detailed_name (string action_name, GLib.Variant? target_value);
                public abstract bool enabled { get; }
                public abstract string name { get; }
-               public abstract GLib.VariantType parameter_type { get; }
-               public abstract GLib.Variant state { owned get; }
-               public abstract GLib.VariantType state_type { get; }
+               public abstract GLib.VariantType? parameter_type { get; }
+               public abstract GLib.Variant? state { owned get; }
+               public abstract GLib.VariantType? state_type { get; }
        }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionGroupInterface", type_id = "g_action_group_get_type ()")]
        public interface ActionGroup : GLib.Object {
index bf291b43cf5d52a0115d11b9018626038bd1d110..be625ec1f7824675bebcbd309f756fe99607f801 100644 (file)
@@ -50,6 +50,12 @@ dbus_* parent="GLib.DBus" name="dbus_(.*)"
 dbus_error_* parent="GLib.DBusError" name="dbus_error_(.*)"
 dbus_address_get_for_bus_sync parent="GLib.BusType" name="get_address_sync"
 
+Action
+  .parameter_type nullable
+  .state nullable
+  .state_type nullable
+PropertyAction
+  .state nullable
 ActionEntry
   .activate type="GLib.SimpleActionActivateCallback"
   .change_state type="GLib.SimpleActionChangeStateCallback"