]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix the g_app_info_launch binding
authorMark Lee <marklee@src.gnome.org>
Fri, 22 May 2009 19:00:52 +0000 (12:00 -0700)
committerJürg Billeter <j@bitron.ch>
Mon, 25 May 2009 19:53:39 +0000 (21:53 +0200)
g_app_info_launch.launch_context is nullable, according to the docs.
Fixes bug 583586.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 1b9cb92309c9d2d28cdeb8db610a22d91a4a8202..ffdcf573d994c26a4cf7a65d7f944e32b9e0ceb2 100644 (file)
@@ -648,7 +648,7 @@ namespace GLib {
                public abstract unowned GLib.Icon get_icon ();
                public abstract unowned string get_id ();
                public abstract unowned string get_name ();
-               public abstract bool launch (GLib.List? files, GLib.AppLaunchContext launch_context) throws GLib.Error;
+               public abstract bool launch (GLib.List? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
                public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
                public abstract bool launch_uris (GLib.List? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
                public abstract bool remove_supports_type (string content_type) throws GLib.Error;
index 2ecc8ae70f835503ad3649feb687a91ae7dfa9cd..5f677d7f90e644ca9cf582efc4393edb97055cf6 100644 (file)
@@ -1,5 +1,6 @@
 GLib cprefix="G" lower_case_cprefix="g_" cheader_filename="gio/gio.h"
 g_app_info_launch.envp is_array="1"
+g_app_info_launch.launch_context nullable="1"
 g_app_info_launch_default_for_uri.launch_context nullable="1"
 g_app_info_launch_uris.envp is_array="1"
 g_content_type_guess.data_size hidden="1"