static GnomeDesktopApplication AppFromAppInfoPtr (IntPtr handle, DesktopApplication defaultApp) { string id = GLib.Marshaller.Utf8PtrToString (g_app_info_get_id (handle)); string name = GLib.Marshaller.Utf8PtrToString (g_app_info_get_name (handle)); string executable = GLib.Marshaller.Utf8PtrToString (g_app_info_get_executable (handle)); if (!string.IsNullOrEmpty (name) && !string.IsNullOrEmpty (executable) && !executable.Contains ("monodevelop ")) return new GnomeDesktopApplication (executable, name, defaultApp != null && defaultApp.Id == id); return null; }
public BrowserExecutionTarget (string id, string displayName, DesktopApplication app){ this.name = displayName; this.id = id; this.DesktopApp = app; }
internal FileViewer (DesktopApplication app) { this.app = app; }