public string GetDisplay(GLib.AppInfo info, GLib.List files) { IntPtr raw_ret = g_app_launch_context_get_display(Handle, info == null ? IntPtr.Zero : info.Handle, files == null ? IntPtr.Zero : files.Handle); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return(ret); }
public bool Equal(GLib.AppInfo appinfo2) { bool raw_ret = g_app_info_equal(Handle, appinfo2 == null ? IntPtr.Zero : appinfo2.Handle); bool ret = raw_ret; return(ret); }
public string GetStartupNotifyId(GLib.AppInfo info, GLib.List files) { IntPtr raw_ret = g_app_launch_context_get_startup_notify_id(Handle, info == null ? IntPtr.Zero : info.Handle, files == null ? IntPtr.Zero : files.Handle); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return(ret); }
public GLib.AppInfo Dup() { IntPtr raw_ret = g_app_info_dup(Handle); GLib.AppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); return(ret); }
public static GLib.AppInfo GetDefaultForType(string content_type, bool must_support_uris) { IntPtr native_content_type = GLib.Marshaller.StringToPtrGStrdup(content_type); IntPtr raw_ret = g_app_info_get_default_for_type(native_content_type, must_support_uris); GLib.AppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_content_type); return(ret); }
public static GLib.AppInfo GetDefaultForUriScheme(string uri_scheme) { IntPtr native_uri_scheme = GLib.Marshaller.StringToPtrGStrdup(uri_scheme); IntPtr raw_ret = g_app_info_get_default_for_uri_scheme(native_uri_scheme); GLib.AppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_uri_scheme); return(ret); }
static IntPtr GetDefaultForUriSchemeCallback(IntPtr lookup, IntPtr uri_scheme) { try { GLib.DesktopAppInfoLookupImplementor __obj = GLib.Object.GetObject(lookup, false) as GLib.DesktopAppInfoLookupImplementor; GLib.AppInfo __result = __obj.GetDefaultForUriScheme(GLib.Marshaller.Utf8PtrToString(uri_scheme)); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public static GLib.AppInfo CreateFromCommandline(string commandline, string application_name, GLib.AppInfoCreateFlags flags) { IntPtr native_commandline = GLib.Marshaller.StringToPtrGStrdup(commandline); IntPtr native_application_name = GLib.Marshaller.StringToPtrGStrdup(application_name); IntPtr error = IntPtr.Zero; IntPtr raw_ret = g_app_info_create_from_commandline(native_commandline, native_application_name, (int)flags, out error); GLib.AppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_commandline); GLib.Marshaller.Free(native_application_name); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }