summarylogtreecommitdiffstats
path: root/drop-gnome-destkop.patch
blob: 9c25d6919239b72d8ed5b31209ddb61b955f183a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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 @@
 <configuration>
 	<dllmap dll="libdo" target="@expanded_libdir@/@PACKAGE@/libdo.so"/>
-	<dllmap dll="gnome-desktop-2" target="libgnome-desktop-2.so.17"/>
 </configuration>
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;
 			}
 		}