static void ErrorSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch) { ErrorArgs args = new ErrorArgs (); try { GLib.Signal sig = ((GCHandle)gch).Target as GLib.Signal; if (sig == null) throw new Exception ("Unknown signal GC handle received " + gch); args.Args = new object[1]; args.Args [0] = GLib.Marshaller.Utf8PtrToString (arg1); GlibErrorHandler handler = (GlibErrorHandler)sig.Handler; handler (GLib.Object.GetObject (arg0), args); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } }
protected virtual void OnError(object o, ErrorArgs args) { if(Error != null) Error(o, args.Message); }
protected virtual void OnCapturerBinError(object o, LongoMatch.Video.Common.ErrorArgs args) { MessagePopup.PopupMessage(this, MessageType.Info, Catalog.GetString("An error occured in the video capturer and the current project will be closed:") + "\n" + args.Message); EmitCloseOpenedProject(true); }
protected virtual void OnPlayerbin1Error(object o, LongoMatch.Video.Common.ErrorArgs args) { MessagePopup.PopupMessage(this, MessageType.Info, Catalog.GetString("The actual project will be closed due to an error in the media player:") + "\n" + args.Message); EmitCloseOpenedProject(true); }
protected virtual void OnError(object o, ErrorArgs args) { if (Error != null) Error (o, args); Close(); }