static IntPtr GetLabel_cb(IntPtr inst) { try { MenuItem __obj = GLib.Object.GetObject(inst, false) as MenuItem; string __result; __result = __obj.OnGetLabel(); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }