diff -Naur gnome-do-0.95.3.orig/Do.Platform.Linux/Do.Platform.Linux.dll.config.in gnome-do-0.95.3/Do.Platform.Linux/Do.Platform.Linux.dll.config.in --- gnome-do-0.95.3.orig/Do.Platform.Linux/Do.Platform.Linux.dll.config.in 2012-03-12 07:30:34.000000000 +0100 +++ gnome-do-0.95.3/Do.Platform.Linux/Do.Platform.Linux.dll.config.in 2017-06-19 22:09:45.486322733 +0200 @@ -1,4 +1,3 @@ - diff -Naur gnome-do-0.95.3.orig/Do.Platform.Linux/Makefile.am gnome-do-0.95.3/Do.Platform.Linux/Makefile.am --- gnome-do-0.95.3.orig/Do.Platform.Linux/Makefile.am 2013-12-26 14:14:28.558156000 +0100 +++ gnome-do-0.95.3/Do.Platform.Linux/Makefile.am 2017-06-19 22:12:44.533411238 +0200 @@ -28,8 +28,6 @@ src/Do.Platform/Do.Platform.Linux/KeyBindingService.cs \ src/Do.Universe/ApplicationItem.cs \ src/Do.Universe/CategoryItem.cs \ - src/Do.Universe/Desktop.cs \ - src/Do.Universe/DesktopThumbnailSize.cs \ src/Do.Universe/NullApplicationItem.cs \ src/Do.Universe/FileItem.cs \ src/Do.Universe/ApplicationItemSource.cs \ diff -Naur gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/Desktop.cs gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/Desktop.cs --- gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/Desktop.cs 2012-03-12 07:30:34.000000000 +0100 +++ gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/Desktop.cs 1970-01-01 01:00:00.000000000 +0100 @@ -1,76 +0,0 @@ -// This file was generated by the Gtk# code generator. -// Any changes made will be lost if regenerated. - -namespace Gnome { - - using System; - using System.Runtime.InteropServices; - -#region Autogenerated code - public class Desktop { - - [DllImport("gnome-desktop-2")] - static extern void gnome_desktop_prepend_terminal_to_vector(out int argc, IntPtr argv); - - public static int PrependTerminalToVector(string argv) { - int argc; - gnome_desktop_prepend_terminal_to_vector(out argc, GLib.Marshaller.StringToPtrGStrdup(argv)); - return argc; - } - - [DllImport("gnome-desktop-2")] - static extern bool gnome_desktop_thumbnail_has_uri(IntPtr pixbuf, IntPtr uri); - - public static bool ThumbnailHasUri(Gdk.Pixbuf pixbuf, string uri) { - IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); - bool raw_ret = gnome_desktop_thumbnail_has_uri(pixbuf == null ? IntPtr.Zero : pixbuf.Handle, native_uri); - bool ret = raw_ret; - GLib.Marshaller.Free (native_uri); - return ret; - } - - [DllImport("gnome-desktop-2")] - static extern IntPtr gnome_desktop_thumbnail_scale_down_pixbuf(IntPtr pixbuf, int dest_width, int dest_height); - - public static Gdk.Pixbuf ThumbnailScaleDownPixbuf(Gdk.Pixbuf pixbuf, int dest_width, int dest_height) { - IntPtr raw_ret = gnome_desktop_thumbnail_scale_down_pixbuf(pixbuf == null ? IntPtr.Zero : pixbuf.Handle, dest_width, dest_height); - Gdk.Pixbuf ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixbuf; - return ret; - } - - [DllImport("gnome-desktop-2")] - static extern IntPtr gnome_desktop_thumbnail_path_for_uri(IntPtr uri, int size); - - public static string ThumbnailPathForUri(string uri, Gnome.DesktopThumbnailSize size) { - IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); - IntPtr raw_ret = gnome_desktop_thumbnail_path_for_uri(native_uri, (int) size); - string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); - GLib.Marshaller.Free (native_uri); - return ret; - } - - [DllImport("gnome-desktop-2")] - static extern bool gnome_desktop_thumbnail_is_valid(IntPtr pixbuf, IntPtr uri, IntPtr mtime); - - public static bool ThumbnailIsValid(Gdk.Pixbuf pixbuf, string uri, System.DateTime mtime) { - IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); - bool raw_ret = gnome_desktop_thumbnail_is_valid(pixbuf == null ? IntPtr.Zero : pixbuf.Handle, native_uri, GLib.Marshaller.DateTimeTotime_t (mtime)); - bool ret = raw_ret; - GLib.Marshaller.Free (native_uri); - return ret; - } - - [DllImport("gnome-desktop-2")] - static extern IntPtr gnome_desktop_thumbnail_md5(IntPtr uri); - - public static string ThumbnailMd5(string uri) { - IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); - IntPtr raw_ret = gnome_desktop_thumbnail_md5(native_uri); - string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); - GLib.Marshaller.Free (native_uri); - return ret; - } - -#endregion - } -} diff -Naur gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/DesktopThumbnailSize.cs gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/DesktopThumbnailSize.cs --- gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/DesktopThumbnailSize.cs 2012-03-12 07:30:34.000000000 +0100 +++ gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/DesktopThumbnailSize.cs 1970-01-01 01:00:00.000000000 +0100 @@ -1,16 +0,0 @@ -// This file was generated by the Gtk# code generator. -// Any changes made will be lost if regenerated. - -namespace Gnome { - - using System; - using System.Runtime.InteropServices; - -#region Autogenerated code - public enum DesktopThumbnailSize { - - Normal, - Large, - } -#endregion -} diff -Naur gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/FileItem.cs gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/FileItem.cs --- gnome-do-0.95.3.orig/Do.Platform.Linux/src/Do.Universe/FileItem.cs 2013-05-06 00:55:12.000000000 +0200 +++ gnome-do-0.95.3/Do.Platform.Linux/src/Do.Universe/FileItem.cs 2017-06-19 22:05:58.604392190 +0200 @@ -144,17 +144,6 @@ icon = MaybeGetSpecialFolderIconForPath (Path); if (icon != null) return icon; - string large_thumb = Desktop.ThumbnailPathForUri (Uri, DesktopThumbnailSize.Large); - string normal_thumb = Desktop.ThumbnailPathForUri (Uri, DesktopThumbnailSize.Normal); - - // Generating the thumbnail ourself is too slow for large files. - // Suggestion: generate thumbnails asynchronously. Banshee's - // notion of job queues may be useful. - if (IO.File.Exists (large_thumb)) { - icon = large_thumb; - } else if (IO.File.Exists (normal_thumb)) { - icon = normal_thumb; - } else { try { if (MimeType == "x-directory/normal" || MimeType == "inode/directory") { icon = "folder"; @@ -167,7 +156,6 @@ } catch (NullReferenceException) { icon = "gtk-file"; } - } return icon; } }