]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
unique-1.0: update to unique-1.1.6.
authorEvan Nemerson <evan@coeus-group.com>
Wed, 2 Dec 2009 17:40:09 +0000 (09:40 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 2 Dec 2009 19:54:57 +0000 (11:54 -0800)
Fixes bug 603609.

vapi/packages/unique-1.0/unique-1.0.gi
vapi/unique-1.0.vapi

index 0d75eb8c892cab7c3947acebe19371cc5006b29b..a4b065e05022ec14272345352519ad31ff5bba9c 100644 (file)
                                        <parameter name="message_data" type="UniqueMessageData*"/>
                                </parameters>
                        </method>
+                       <method name="get" symbol="unique_message_data_get">
+                               <return-type type="guchar*"/>
+                               <parameters>
+                                       <parameter name="message_data" type="UniqueMessageData*"/>
+                                       <parameter name="length" type="gsize*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_filename" symbol="unique_message_data_get_filename">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="message_data" type="UniqueMessageData*"/>
+                               </parameters>
+                       </method>
                        <method name="get_screen" symbol="unique_message_data_get_screen">
                                <return-type type="GdkScreen*"/>
                                <parameters>
                                        <parameter name="length" type="gsize"/>
                                </parameters>
                        </method>
+                       <method name="set_filename" symbol="unique_message_data_set_filename">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="message_data" type="UniqueMessageData*"/>
+                                       <parameter name="filename" type="gchar*"/>
+                               </parameters>
+                       </method>
                        <method name="set_text" symbol="unique_message_data_set_text">
                                <return-type type="gboolean"/>
                                <parameters>
                                </parameters>
                        </method>
                </boxed>
-               <enum name="UniqueCommand">
+               <enum name="UniqueCommand" type-name="UniqueCommand" get-type="unique_command_get_type">
                        <member name="UNIQUE_INVALID" value="0"/>
                        <member name="UNIQUE_ACTIVATE" value="-1"/>
                        <member name="UNIQUE_NEW" value="-2"/>
                        <member name="UNIQUE_OPEN" value="-3"/>
                        <member name="UNIQUE_CLOSE" value="-4"/>
                </enum>
-               <enum name="UniqueResponse">
+               <enum name="UniqueResponse" type-name="UniqueResponse" get-type="unique_response_get_type">
                        <member name="UNIQUE_RESPONSE_INVALID" value="0"/>
                        <member name="UNIQUE_RESPONSE_OK" value="1"/>
                        <member name="UNIQUE_RESPONSE_CANCEL" value="2"/>
                        <member name="UNIQUE_RESPONSE_FAIL" value="3"/>
+                       <member name="UNIQUE_RESPONSE_PASSTHROUGH" value="4"/>
                </enum>
                <object name="UniqueApp" parent="GObject" type-name="UniqueApp" get-type="unique_app_get_type">
                        <method name="add_command" symbol="unique_app_add_command">
                </object>
                <constant name="UNIQUE_API_VERSION_S" type="char*" value="1.0"/>
                <constant name="UNIQUE_DEFAULT_BACKEND_S" type="char*" value="dbus"/>
-               <constant name="UNIQUE_MAJOR_VERSION" type="int" value="0"/>
-               <constant name="UNIQUE_MICRO_VERSION" type="int" value="5"/>
-               <constant name="UNIQUE_MINOR_VERSION" type="int" value="9"/>
+               <constant name="UNIQUE_MAJOR_VERSION" type="int" value="1"/>
+               <constant name="UNIQUE_MICRO_VERSION" type="int" value="6"/>
+               <constant name="UNIQUE_MINOR_VERSION" type="int" value="1"/>
                <constant name="UNIQUE_PROTOCOL_VERSION_S" type="char*" value="1.0"/>
                <constant name="UNIQUE_VERSION_HEX" type="int" value="0"/>
-               <constant name="UNIQUE_VERSION_S" type="char*" value="0.9.5"/>
+               <constant name="UNIQUE_VERSION_S" type="char*" value="1.1.6"/>
        </namespace>
 </api>
index 17df117e0d20ec42e7fe50c9fc0caa51d8955cf4..1e0eace6c90e0bd4635630b25436cf4dc9af0d40 100644 (file)
@@ -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;