From 57ab6ca8410bbe3ad0a00a6f86a4fe94b20326fc Mon Sep 17 00:00:00 2001 From: Alistair Thomas Date: Thu, 31 May 2018 15:42:38 +0100 Subject: [PATCH] gio-2.0: Mark ActionEntry.parameter_type/state fields as nullable Fixes https://gitlab.gnome.org/GNOME/vala/issues/632 --- vapi/gio-2.0.vapi | 4 ++-- vapi/metadata/Gio-2.0-custom.vala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 08df18fa9..e3c02dcdf 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -3841,8 +3841,8 @@ namespace GLib { public weak string name; [CCode (delegate_target = false)] public weak GLib.SimpleActionActivateCallback? activate; - public weak string parameter_type; - public weak string state; + public weak string? parameter_type; + public weak string? state; [CCode (delegate_target = false)] public weak GLib.SimpleActionChangeStateCallback? change_state; } diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala index ed5cc3d00..35379b695 100644 --- a/vapi/metadata/Gio-2.0-custom.vala +++ b/vapi/metadata/Gio-2.0-custom.vala @@ -14,8 +14,8 @@ namespace GLib { public weak string name; [CCode (delegate_target = false)] public weak GLib.SimpleActionActivateCallback? activate; - public weak string parameter_type; - public weak string state; + public weak string? parameter_type; + public weak string? state; [CCode (delegate_target = false)] public weak GLib.SimpleActionChangeStateCallback? change_state; } -- 2.47.2