static IntPtr CreateToolItem_cb(IntPtr inst) { try { Action __obj = GLib.Object.GetObject(inst, false) as Action; Gtk.Widget __result; __result = __obj.OnCreateToolItem(); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }