]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gnome-desktop-2.0: Fix gnome_desktop_item_{get,set}_strings bindings
authorMark Lee <marklee@src.gnome.org>
Sun, 17 May 2009 19:36:22 +0000 (12:36 -0700)
committerJürg Billeter <j@bitron.ch>
Mon, 1 Jun 2009 08:21:02 +0000 (10:21 +0200)
gnome_desktop_item_get_strings and gnome_desktop_item_set_strings
use NULL-terminated string arrays. Fixes bug 582974.

vapi/gnome-desktop-2.0.vapi
vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata

index cb4e5df4412b1af9509bad921e58506151439d4f..b892307f2c511d21a56a8775a10dfb3986f5907b 100644 (file)
@@ -49,7 +49,8 @@ namespace Gnome {
                public unowned string get_localestring_lang (string attr, string language);
                public unowned string get_location ();
                public unowned string get_string (string attr);
-               public unowned string get_strings (string attr);
+               [CCode (array_length = false, array_null_terminated = true)]
+               public unowned string[] get_strings (string attr);
                public int launch (GLib.List file_list, Gnome.DesktopItemLaunchFlags flags) throws GLib.Error;
                public int launch_on_screen (GLib.List file_list, Gnome.DesktopItemLaunchFlags flags, Gdk.Screen screen, int workspace) throws GLib.Error;
                public int launch_with_env (GLib.List file_list, Gnome.DesktopItemLaunchFlags flags, string[] envp) throws GLib.Error;
@@ -64,7 +65,7 @@ namespace Gnome {
                public void set_location (string location);
                public void set_location_file (string file);
                public void set_string (string attr, string value);
-               public void set_strings (string attr, string[] strings);
+               public void set_strings (string attr, [CCode (array_length = false)] string[] strings);
        }
        [CCode (cheader_filename = "libgnomeui/gnome-hint.h")]
        public class Hint : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
index 61faa046dc6b47dc77ceaceaa28718036e5e08a7..45efcf45fde6247784600c75225c7f29a2d4e8f0 100644 (file)
@@ -1,7 +1,8 @@
 Gnome cheader_filename="libgnome/gnome-desktop-item.h"
 gnome_desktop_item_drop_uri_list_with_env.envp is_array="1"
+gnome_desktop_item_get_strings is_array="1" array_null_terminated="1"
 gnome_desktop_item_launch_with_env.envp is_array="1"
-gnome_desktop_item_set_strings.strings is_array="1"
+gnome_desktop_item_set_strings.strings is_array="1" array_null_terminated="1"
 GnomeDItemEdit cheader_filename="libgnomeui/gnome-ditem-edit.h"
 GnomeHint cheader_filename="libgnomeui/gnome-hint.h"