[vala] unique-1.0: update to unique-1.1.6.



commit 738998f5ed6fa2420983318a48e6d544b0f50843
Author: Evan Nemerson <evan coeus-group com>
Date:   Wed Dec 2 09:40:09 2009 -0800

    unique-1.0: update to unique-1.1.6.
    
    Fixes bug 603609.

 vapi/packages/unique-1.0/unique-1.0.gi |   33 ++++++++++++++++++++++++++-----
 vapi/unique-1.0.vapi                   |   26 ++++++++++++++----------
 2 files changed, 42 insertions(+), 17 deletions(-)
---
diff --git a/vapi/packages/unique-1.0/unique-1.0.gi b/vapi/packages/unique-1.0/unique-1.0.gi
index 0d75eb8..a4b065e 100644
--- a/vapi/packages/unique-1.0/unique-1.0.gi
+++ b/vapi/packages/unique-1.0/unique-1.0.gi
@@ -14,6 +14,19 @@
 					<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>
@@ -55,6 +68,13 @@
 					<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>
@@ -71,18 +91,19 @@
 				</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">
@@ -230,11 +251,11 @@
 		</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>
diff --git a/vapi/unique-1.0.vapi b/vapi/unique-1.0.vapi
index 17df117..1e0eace 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]