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