예제 #1
0
        public override void handleError(CharpError err, CharpCtx ctx = null)
        {
            if (ctx != null && ctx.error != null && !ctx.error (err, ctx)) {
                    return;
            }

            Gtk.Application.Invoke (delegate {
                CharpGtkErrorDlg dlg = new CharpGtkErrorDlg (err, ctx);
                if (ctx is CharpGtkCtx && ((CharpGtkCtx) ctx).parent != null) {
                    dlg.TransientFor = ((CharpGtkCtx) ctx).parent;
                } else if (parent != null) {
                    dlg.TransientFor = parent;
                }
                dlg.Run ();
            });
        }
예제 #2
0
        public override void handleError(CharpError err, CharpCtx ctx = null)
        {
            if (ctx != null && ctx.error != null && !ctx.error(err, ctx))
            {
                return;
            }

            Gtk.Application.Invoke(delegate {
                CharpGtkErrorDlg dlg = new CharpGtkErrorDlg(err, ctx);
                if (ctx is CharpGtkCtx && ((CharpGtkCtx)ctx).parent != null)
                {
                    dlg.TransientFor = ((CharpGtkCtx)ctx).parent;
                }
                else if (parent != null)
                {
                    dlg.TransientFor = parent;
                }
                dlg.Run();
            });
        }