public string GetStartupNotifyId(GLib.IAppInfo info, GLib.List files) { IntPtr raw_ret = g_app_launch_context_get_startup_notify_id(Handle, info == null ? IntPtr.Zero : ((info is GLib.Object) ? (info as GLib.Object).Handle : (info as GLib.AppInfoAdapter).Handle), files == null ? IntPtr.Zero : files.Handle); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return(ret); }
public bool Equal(GLib.IAppInfo appinfo2) { bool raw_ret = g_app_info_equal(Handle, appinfo2 == null ? IntPtr.Zero : ((appinfo2 is GLib.Object) ? (appinfo2 as GLib.Object).Handle : (appinfo2 as GLib.AppInfoAdapter).Handle)); bool ret = raw_ret; return(ret); }
public GLib.IAppInfo Dup() { IntPtr raw_ret = g_app_info_dup(Handle); GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); return(ret); }
public static GLib.IAppInfo 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.IAppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_content_type); return(ret); }
public static GLib.IAppInfo 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.IAppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_uri_scheme); return(ret); }
private void InternalLaunched(GLib.IAppInfo info, GLib.Variant platform_data) { LaunchedNativeDelegate unmanaged = class_abi.BaseOverride <LaunchedNativeDelegate>(this.LookupGType(), "launched"); if (unmanaged == null) { return; } unmanaged(this.Handle, info == null ? IntPtr.Zero : ((info is GLib.Object) ? (info as GLib.Object).Handle : (info as GLib.AppInfoAdapter).Handle), platform_data == null ? IntPtr.Zero : platform_data.Handle); }
private void InternalPopulatePopup(Gtk.Menu menu, GLib.IAppInfo app_info) { PopulatePopupNativeDelegate unmanaged = class_abi.BaseOverride <PopulatePopupNativeDelegate>(this.LookupGType(), "populate_popup"); if (unmanaged == null) { return; } unmanaged(this.Handle, menu == null ? IntPtr.Zero : menu.Handle, app_info == null ? IntPtr.Zero : ((app_info is GLib.Object) ? (app_info as GLib.Object).Handle : (app_info as GLib.AppInfoAdapter).Handle)); }
private void InternalApplicationActivated(GLib.IAppInfo app_info) { ApplicationActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ApplicationActivatedNativeDelegate>(this.LookupGType(), "application_activated"); if (unmanaged == null) { return; } unmanaged(this.Handle, app_info == null ? IntPtr.Zero : ((app_info is GLib.Object) ? (app_info as GLib.Object).Handle : (app_info as GLib.AppInfoAdapter).Handle)); }
private string InternalGetDisplay(GLib.IAppInfo info, GLib.List files) { GetDisplayNativeDelegate unmanaged = class_abi.BaseOverride <GetDisplayNativeDelegate>(this.LookupGType(), "get_display"); if (unmanaged == null) { return(null); } IntPtr __result = unmanaged(this.Handle, info == null ? IntPtr.Zero : ((info is GLib.Object) ? (info as GLib.Object).Handle : (info as GLib.AppInfoAdapter).Handle), files == null ? IntPtr.Zero : files.Handle); return(GLib.Marshaller.PtrToStringGFree(__result)); }
public unsafe GLib.IAppInfo CreateAppInfo(string app_name) { IntPtr native_app_name = GLib.Marshaller.StringToPtrGStrdup(app_name); IntPtr error = IntPtr.Zero; IntPtr raw_ret = gtk_recent_info_create_app_info(Handle, native_app_name, out error); GLib.IAppInfo ret = GLib.AppInfoAdapter.GetObject(raw_ret, false); GLib.Marshaller.Free(native_app_name); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
private void InternalLaunched(GLib.IAppInfo info, GLib.Variant platform_data) { LaunchedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("launched")); unmanaged = (LaunchedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LaunchedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, info == null ? IntPtr.Zero : ((info is GLib.Object) ? (info as GLib.Object).Handle : (info as GLib.AppInfoAdapter).Handle), platform_data == null ? IntPtr.Zero : platform_data.Handle); }
private void InternalPopulatePopup(Gtk.Menu menu, GLib.IAppInfo app_info) { PopulatePopupNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("populate_popup")); unmanaged = (PopulatePopupNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PopulatePopupNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, menu == null ? IntPtr.Zero : menu.Handle, app_info == null ? IntPtr.Zero : ((app_info is GLib.Object) ? (app_info as GLib.Object).Handle : (app_info as GLib.AppInfoAdapter).Handle)); }
private void InternalApplicationActivated(GLib.IAppInfo app_info) { ApplicationActivatedNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("application_activated")); unmanaged = (ApplicationActivatedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ApplicationActivatedNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, app_info == null ? IntPtr.Zero : ((app_info is GLib.Object) ? (app_info as GLib.Object).Handle : (app_info as GLib.AppInfoAdapter).Handle)); }
public static GLib.IAppInfo 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.IAppInfo 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); }
private string InternalGetDisplay(GLib.IAppInfo info, GLib.List files) { GetDisplayNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("get_display")); unmanaged = (GetDisplayNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetDisplayNativeDelegate)); } if (unmanaged == null) { return(null); } IntPtr __result = unmanaged(this.Handle, info == null ? IntPtr.Zero : ((info is GLib.Object) ? (info as GLib.Object).Handle : (info as GLib.AppInfoAdapter).Handle), files == null ? IntPtr.Zero : files.Handle); return(GLib.Marshaller.PtrToStringGFree(__result)); }
protected virtual void OnPopulatePopup(Gtk.Menu menu, GLib.IAppInfo app_info) { InternalPopulatePopup(menu, app_info); }
protected virtual void OnApplicationActivated(GLib.IAppInfo app_info) { InternalApplicationActivated(app_info); }
protected virtual string OnGetStartupNotifyId(GLib.IAppInfo info, GLib.List files) { return(InternalGetStartupNotifyId(info, files)); }
protected virtual void OnLaunched(GLib.IAppInfo info, GLib.Variant platform_data) { InternalLaunched(info, platform_data); }
protected virtual string OnGetDisplay(GLib.IAppInfo info, GLib.List files) { return(InternalGetDisplay(info, files)); }