Ejemplo n.º 1
0
		protected virtual void OnPluginLoaded (Ethos.PluginInfo plugin_info)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (plugin_info);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 2
0
		protected virtual void OnConnectionChanged (bool connected)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (connected);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 3
0
		protected virtual void OnPackage (PackageKit.PackageObj obj)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (obj);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 4
0
		protected virtual void OnProgress (uint p0, string p1)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (p1);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 5
0
		protected virtual void OnMessage (PackageKit.MessageEnum message, string details)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (message);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (details);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 6
0
		protected virtual void OnErrorCode (PackageKit.Client client, PackageKit.ErrorCodeEnum code, string details)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (client);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (code);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (details);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 7
0
		protected virtual void OnChanged (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (file);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (other_file);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (event_type);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 8
0
		private void InternalChanged ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 9
0
		protected virtual void OnGotCompletionData ()
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 10
0
 private void InternalPoppedUp()
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
     GLib.Value[]    vals            = new GLib.Value [1];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
Ejemplo n.º 11
0
 protected virtual void OnChangedSubscriptions()
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
     GLib.Value[]    vals            = new GLib.Value [1];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
Ejemplo n.º 12
0
 protected virtual Unique.Response OnMessageReceived(int command, Unique.MessageData message_data, uint time_)
 {
     GLib.Value      ret             = new GLib.Value(Unique.ResponseGType.GType);
     GLib.ValueArray inst_and_params = new GLib.ValueArray(4);
     GLib.Value[]    vals            = new GLib.Value [4];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(command);
     inst_and_params.Append(vals [1]);
     vals [2] = new GLib.Value(message_data);
     inst_and_params.Append(vals [2]);
     vals [3] = new GLib.Value(time_);
     inst_and_params.Append(vals [3]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
     Unique.Response result = (Unique.Response)(Enum) ret;
     ret.Dispose();
     return(result);
 }
Ejemplo n.º 13
0
        protected virtual void OnGotCompletionData()
        {
            GLib.Value ret             = GLib.Value.Empty;
            var        inst_and_params = new GLib.ValueArray(1);
            var        vals            = new GLib.Value [1];

            vals [0] = new GLib.Value(this);
            inst_and_params.Append(vals [0]);
            g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
            foreach (GLib.Value v in vals)
            {
                v.Dispose();
            }
        }
Ejemplo n.º 14
0
        private bool InternalAccelActivate(GLib.Object acceleratable, uint keyval, Gdk.ModifierType modifier)
        {
            GLib.Value      ret             = new GLib.Value(GLib.GType.Boolean);
            GLib.ValueArray inst_and_params = new GLib.ValueArray(4);
            GLib.Value[]    vals            = new GLib.Value [4];
            vals [0] = new GLib.Value(this);
            inst_and_params.Append(vals [0]);
            vals [1] = new GLib.Value(acceleratable);
            inst_and_params.Append(vals [1]);
            vals [2] = new GLib.Value(keyval);
            inst_and_params.Append(vals [2]);
            vals [3] = new GLib.Value(modifier);
            inst_and_params.Append(vals [3]);
            g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
            foreach (GLib.Value v in vals)
            {
                v.Dispose();
            }
            bool result = (bool)ret;

            ret.Dispose();
            return(result);
        }
Ejemplo n.º 15
0
        protected virtual void OnTextInserted(string text, ref int position)
        {
            GLib.Value      ret             = GLib.Value.Empty;
            GLib.ValueArray inst_and_params = new GLib.ValueArray(4);
            GLib.Value[]    vals            = new GLib.Value [4];
            vals [0] = new GLib.Value(this);
            inst_and_params.Append(vals [0]);
            vals [1] = new GLib.Value(text);
            inst_and_params.Append(vals [1]);
            vals [2] = new GLib.Value(System.Text.Encoding.UTF8.GetByteCount(text));
            inst_and_params.Append(vals [2]);
            IntPtr position_ptr = GLib.Marshaller.StructureToPtrAlloc(position);

            vals [3] = new GLib.Value(position_ptr);
            inst_and_params.Append(vals [3]);
            g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
            position = (int)Marshal.PtrToStructure(position_ptr, typeof(int));
            Marshal.FreeHGlobal(position_ptr);

            foreach (GLib.Value v in vals)
            {
                v.Dispose();
            }
        }
Ejemplo n.º 16
0
 private Gtk.FileChooserConfirmation InternalConfirmOverwrite()
 {
     GLib.Value      ret             = new GLib.Value(Gtk.FileChooserConfirmationGType.GType);
     GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
     GLib.Value[]    vals            = new GLib.Value [1];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
     Gtk.FileChooserConfirmation result = (Gtk.FileChooserConfirmation)(Enum) ret;
     ret.Dispose();
     return(result);
 }
Ejemplo n.º 17
0
        private bool InternalPoppedDown()
        {
            GLib.Value      ret             = new GLib.Value(GLib.GType.Boolean);
            GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
            GLib.Value[]    vals            = new GLib.Value [1];
            vals [0] = new GLib.Value(this);
            inst_and_params.Append(vals [0]);
            g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
            foreach (GLib.Value v in vals)
            {
                v.Dispose();
            }
            bool result = (bool)ret;

            ret.Dispose();
            return(result);
        }
Ejemplo n.º 18
0
        protected virtual bool OnNSApplicationBlockTermination()
        {
            GLib.Value      ret             = new GLib.Value(GLib.GType.Boolean);
            GLib.ValueArray inst_and_params = new GLib.ValueArray(1);
            GLib.Value[]    vals            = new GLib.Value [1];
            vals [0] = new GLib.Value(this);
            inst_and_params.Append(vals [0]);
            g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
            foreach (GLib.Value v in vals)
            {
                v.Dispose();
            }
            bool result = (bool)ret;

            ret.Dispose();
            return(result);
        }
Ejemplo n.º 19
0
        static IntPtr GetValues_cb(IntPtr inst, uint prop_id, IntPtr pspec)
        {
            try {
                PropertyProbeImplementor __obj = GLib.Object.GetObject(inst, false) as PropertyProbeImplementor;
                Gst.PropertyInfo         pi    = new Gst.PropertyInfo(pspec);
                object[]        values         = __obj.GetValues(pi.Name);
                GLib.ValueArray va             = new GLib.ValueArray((uint)values.Length);

                foreach (object v in values)
                {
                    va.Append(new GLib.Value(v));
                }
                return(va.Handle);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, false);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
Ejemplo n.º 20
0
		protected virtual void OnReply (GLib.MountOperationResult result)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (result);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 21
0
		private void InternalActionStateChanged (string action_name, GLib.Variant value)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (action_name);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (value);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 22
0
		private void InternalColumnInserted (int column, int num_inserted)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (column);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (num_inserted);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 23
0
		private void InternalChanged (string p0, Gtk.TreeIter p1)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (p1);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 24
0
		private Gtk.FileChooserConfirmation InternalConfirmOverwrite ()
		{
			GLib.Value ret = new GLib.Value (Gtk.FileChooserConfirmationGType.GType);
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
			Gtk.FileChooserConfirmation result = (Gtk.FileChooserConfirmation) (Enum) ret;
			ret.Dispose ();
			return result;
		}
Ejemplo n.º 25
0
		protected virtual void OnPercentCompleted(float percent)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value(this);
			inst_and_params.Append(vals [0]);
			vals [1] = new GLib.Value(percent);
			inst_and_params.Append(vals [1]);
			g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
			foreach(GLib.Value v in vals)
				v.Dispose();
		}
Ejemplo n.º 26
0
		protected virtual void OnError (string message)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (message);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 27
0
		protected virtual void OnRowsReordered (Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order)
		{
			int dummy;
			OnRowsReordered (path, iter, out dummy);
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (path);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (iter);
			inst_and_params.Append (vals [2]);
			int cnt = IterNChildren (iter);
			IntPtr new_order_ptr = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (int)) * cnt);
			Marshal.Copy (new_order, 0, new_order_ptr, cnt);
			vals [3] = new GLib.Value (new_order_ptr);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			Marshal.FreeHGlobal (new_order_ptr);

			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 28
0
		private void InternalWidgetEventAfter (Gdk.Event evnt)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (evnt);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 29
0
		private void InternalDisconnectProxy (Gtk.Action action, Gtk.Widget proxy)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (action);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (proxy);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 30
0
		protected virtual void OnAskPassword (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (5);
			GLib.Value[] vals = new GLib.Value [5];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (message);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (default_user);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (default_domain);
			inst_and_params.Append (vals [3]);
			vals [4] = new GLib.Value (flags);
			inst_and_params.Append (vals [4]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 31
0
		protected virtual void OnShowProcesses (string message, IntPtr processes, string[] choices)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (message);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (processes);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (choices);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 32
0
		private void InternalTextChanged (int position, int length)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (position);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (length);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 33
0
		private bool InternalFocusHomeOrEnd (bool p0)
		{
			GLib.Value ret = new GLib.Value (GLib.GType.Boolean);
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
			bool result = (bool) ret;
			ret.Dispose ();
			return result;
		}
Ejemplo n.º 34
0
		private void InternalLinkSelected (int link_index)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (link_index);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 35
0
		private void InternalMoveViewport (Gtk.ScrollStep p0, int p1)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
			GLib.Value[] vals = new GLib.Value [3];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (p1);
			inst_and_params.Append (vals [2]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 36
0
 protected virtual void OnIconReleased(IconEntryPosition IconPosition, int button)
 {
     GLib.Value ret = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
     GLib.Value[] vals = new GLib.Value [3];
     vals [0] = new GLib.Value (this);
     inst_and_params.Append (vals [0]);
     vals [1] = new GLib.Value (IconPosition);
     inst_and_params.Append (vals [1]);
     vals [2] = new GLib.Value (button);
     inst_and_params.Append (vals [2]);
     g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
         v.Dispose ();
 }
Ejemplo n.º 37
0
        public static object Emit(GLib.Object instance, string detailed_signal, params object[] args)
        {
            uint gquark, signal_id;
            string signal_name;
            ParseSignalDetail (detailed_signal, out signal_name, out gquark);
            signal_id = GetSignalId (signal_name, instance);
            if (signal_id <= 0)
                throw new ArgumentException ("Invalid signal name: " + signal_name);
            GLib.Value[] vals = new GLib.Value [args.Length + 1];
            GLib.ValueArray inst_and_params = new GLib.ValueArray ((uint) args.Length + 1);

            vals [0] = new GLib.Value (instance);
            inst_and_params.Append (vals [0]);
            for (int i = 1; i < vals.Length; i++) {
                vals [i] = new GLib.Value (args [i - 1]);
                inst_and_params.Append (vals [i]);
            }

            object ret_obj = null;
            Query query;
            g_signal_query (signal_id, out query);
            if (query.return_type != GType.None.Val) {
                GLib.Value ret = GLib.Value.Empty;
                g_signal_emitv (inst_and_params.ArrayPtr, signal_id, gquark, ref ret);
                ret_obj = ret.Val;
                ret.Dispose ();
            } else
                g_signal_emitv (inst_and_params.ArrayPtr, signal_id, gquark, IntPtr.Zero);

            foreach (GLib.Value val in vals)
                val.Dispose ();

            return ret_obj;
        }
Ejemplo n.º 38
0
		protected virtual bool OnNSApplicationBlockTermination ()
		{
			GLib.Value ret = new GLib.Value (GLib.GType.Boolean);
			GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
			GLib.Value[] vals = new GLib.Value [1];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
			bool result = (bool) ret;
			ret.Dispose ();
			return result;
		}
Ejemplo n.º 39
0
		private void InternalMenuActivate (string p0)
		{
			GLib.Value ret = GLib.Value.Empty;
			GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
			GLib.Value[] vals = new GLib.Value [2];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (p0);
			inst_and_params.Append (vals [1]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
		}
Ejemplo n.º 40
0
		protected virtual Unique.Response OnMessageReceived (int command, Unique.MessageData message_data, uint time_)
		{
			GLib.Value ret = new GLib.Value (Unique.ResponseGType.GType);
			GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
			GLib.Value[] vals = new GLib.Value [4];
			vals [0] = new GLib.Value (this);
			inst_and_params.Append (vals [0]);
			vals [1] = new GLib.Value (command);
			inst_and_params.Append (vals [1]);
			vals [2] = new GLib.Value (message_data);
			inst_and_params.Append (vals [2]);
			vals [3] = new GLib.Value (time_);
			inst_and_params.Append (vals [3]);
			g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
			foreach (GLib.Value v in vals)
				v.Dispose ();
			Unique.Response result = (Unique.Response) (Enum) ret;
			ret.Dispose ();
			return result;
		}