Пример #1
0
        public void Send(Gtk.PrintJobCompleteFunc cb)
        {
            GtkSharp.PrintJobCompleteFuncWrapper cb_wrapper = new GtkSharp.PrintJobCompleteFuncWrapper(cb);
            IntPtr user_data;

            GLib.DestroyNotify dnotify;
            if (cb == null)
            {
                user_data = IntPtr.Zero;
                dnotify   = null;
            }
            else
            {
                user_data = (IntPtr)GCHandle.Alloc(cb_wrapper);
                dnotify   = GLib.DestroyHelper.NotifyHandler;
            }
            gtk_print_job_send(Handle, cb_wrapper.NativeDelegate, user_data, dnotify);
        }
Пример #2
0
		public void Send(Gtk.PrintJobCompleteFunc cb) {
			GtkSharp.PrintJobCompleteFuncWrapper cb_wrapper = new GtkSharp.PrintJobCompleteFuncWrapper (cb);
			IntPtr user_data;
			GLib.DestroyNotify dnotify;
			if (cb == null) {
				user_data = IntPtr.Zero;
				dnotify = null;
			} else {
				user_data = (IntPtr) GCHandle.Alloc (cb_wrapper);
				dnotify = GLib.DestroyHelper.NotifyHandler;
			}
			gtk_print_job_send(Handle, cb_wrapper.NativeDelegate, user_data, dnotify);
		}