public RemoteFileMenuEntry (GLib.File file, string groupTitle) : base (file.Basename, "", groupTitle) { Clicked += delegate { DockServices.System.Open (file); }; // only check the icon if it's mounted (ie: .Path != null) if (!string.IsNullOrEmpty (file.Path)) { string thumbnailPath = file.QueryInfo<string> ("thumbnail::path"); if (!string.IsNullOrEmpty (thumbnailPath)) Icon = thumbnailPath; else Icon = file.Icon (); } if (string.IsNullOrEmpty (Icon)) Icon = "gtk-file"; }