[vala] gnome-desktop-2.0: Fix gnome_desktop_item_{get, set}_strings bindings
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] gnome-desktop-2.0: Fix gnome_desktop_item_{get, set}_strings bindings
- Date: Mon, 1 Jun 2009 04:21:25 -0400 (EDT)
commit 84e2dcce54672af7605b4573f229aa7ae45d2b24
Author: Mark Lee <marklee src gnome org>
Date: Sun May 17 12:36:22 2009 -0700
gnome-desktop-2.0: Fix gnome_desktop_item_{get,set}_strings bindings
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 | 5 +++--
.../gnome-desktop-2.0/gnome-desktop-2.0.metadata | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/vapi/gnome-desktop-2.0.vapi b/vapi/gnome-desktop-2.0.vapi
index cb4e5df..b892307 100644
--- a/vapi/gnome-desktop-2.0.vapi
+++ b/vapi/gnome-desktop-2.0.vapi
@@ -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 {
diff --git a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata
index 61faa04..45efcf4 100644
--- a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata
+++ b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]