diff options
author | Evan Nemerson <evan@coeus-group.com> | 2009-12-02 09:40:09 -0800 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2009-12-02 11:54:57 -0800 |
commit | 738998f5ed6fa2420983318a48e6d544b0f50843 (patch) | |
tree | 4e7cdbbd67086db9631a3868b79f1d9bbd74d74b /vapi/unique-1.0.vapi | |
parent | f40bbc26824a5bdb36614767c1d237f4d357ee49 (diff) | |
download | vala-738998f5ed6fa2420983318a48e6d544b0f50843.tar.gz |
unique-1.0: update to unique-1.1.6.
Fixes bug 603609.
Diffstat (limited to 'vapi/unique-1.0.vapi')
-rw-r--r-- | vapi/unique-1.0.vapi | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/vapi/unique-1.0.vapi b/vapi/unique-1.0.vapi index 17df117e0..1e0eace6c 100644 --- a/vapi/unique-1.0.vapi +++ b/vapi/unique-1.0.vapi @@ -4,9 +4,9 @@ namespace Unique { [CCode (cheader_filename = "unique/unique.h")] public class App : GLib.Object { - public void add_command (string command_name, int command_id); [CCode (has_construct_function = false)] public App (string name, string? startup_id); + public void add_command (string command_name, int command_id); public Unique.Response send_message (int command_id, Unique.MessageData? message_data); public void watch_window (Gtk.Window window); [CCode (has_construct_function = false)] @@ -14,11 +14,11 @@ namespace Unique { [NoAccessorMethod] public bool is_running { get; } [NoAccessorMethod] - public string name { get; construct; } + public string name { owned get; construct; } [NoAccessorMethod] - public Gdk.Screen screen { get; set construct; } + public Gdk.Screen screen { owned get; set construct; } [NoAccessorMethod] - public string startup_id { get; construct; } + public string startup_id { owned get; construct; } public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_); } [CCode (cheader_filename = "unique/unique.h")] @@ -40,22 +40,25 @@ namespace Unique { public void set_startup_id (string startup_id); } [Compact] - [CCode (copy_function = "unique_message_data_copy", cheader_filename = "unique/unique.h")] + [CCode (copy_function = "unique_message_data_copy", type_id = "UNIQUE_TYPE_MESSAGE_DATA", cheader_filename = "unique/unique.h")] public class MessageData { + [CCode (has_construct_function = false)] + public MessageData (); public Unique.MessageData copy (); + public unowned uchar[] @get (size_t length); + public unowned string get_filename (); public unowned Gdk.Screen get_screen (); public unowned string get_startup_id (); public string get_text (); [CCode (array_length = false)] public string[] get_uris (); public uint get_workspace (); - [CCode (has_construct_function = false)] - public MessageData (); - public void set (uchar[]? data, size_t length); + public void @set (uchar[]? data, size_t length); + public void set_filename (string filename); public bool set_text (string str, ssize_t length); public bool set_uris ([CCode (array_length = false)] string[] uris); } - [CCode (cprefix = "UNIQUE_", has_type_id = "0", cheader_filename = "unique/unique.h")] + [CCode (cprefix = "UNIQUE_", cheader_filename = "unique/unique.h")] public enum Command { INVALID, ACTIVATE, @@ -63,12 +66,13 @@ namespace Unique { OPEN, CLOSE } - [CCode (cprefix = "UNIQUE_RESPONSE_", has_type_id = "0", cheader_filename = "unique/unique.h")] + [CCode (cprefix = "UNIQUE_RESPONSE_", cheader_filename = "unique/unique.h")] public enum Response { INVALID, OK, CANCEL, - FAIL + FAIL, + PASSTHROUGH } [CCode (cheader_filename = "unique/unique.h")] public const string API_VERSION_S; |