static void AddWidget_cb(IntPtr inst, IntPtr widget) { try { UIManager __obj = GLib.Object.GetObject(inst, false) as UIManager; __obj.OnAddWidget(GLib.Object.GetObject(widget) as Gtk.Widget); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }