Patch to compile with mono beta 1



Hi there

Tiny patch which made f-spot compile with mono beta 1 on my box. Had to
add some int cast in 
./src/ExportCommand.cs
./src/PhotoVersionCommands.cs
./src/TagCommands.cs


-- 
Kristian Berg  | Computer Science is about lofty design goals and
               | algorithmic optimization. Sysadmining is about cleaning
               | up the fscking mess that results.
diff -u -r ../f-spot/src/ExportCommand.cs ./src/ExportCommand.cs
--- ../f-spot/src/ExportCommand.cs	2004-05-14 22:57:56.000000000 +0200
+++ ./src/ExportCommand.cs	2004-05-21 22:26:45.000000000 +0200
@@ -98,7 +98,7 @@
 			Glade.XML xml = new Glade.XML (null, "f-spot.glade", "export_gallery_dialog", null);
 			xml.Autoconnect (this);
 
-			export_gallery_dialog.DefaultResponse = ResponseType.Ok;
+			export_gallery_dialog.DefaultResponse = (int) ResponseType.Ok;
 
 			Update ();
 
diff -u -r ../f-spot/src/PhotoVersionCommands.cs ./src/PhotoVersionCommands.cs
--- ../f-spot/src/PhotoVersionCommands.cs	2004-05-14 21:06:02.000000000 +0200
+++ ./src/PhotoVersionCommands.cs	2004-05-21 22:26:39.000000000 +0200
@@ -79,7 +79,7 @@
 			version_name_entry.ActivatesDefault = true;
 			version_name_dialog.TransientFor = parent_window;
 
-			version_name_dialog.DefaultResponse = ResponseType.Ok;
+			version_name_dialog.DefaultResponse = (int)ResponseType.Ok;
 
 			Update ();
 		}
@@ -139,7 +139,7 @@
 			dialog.Title = "Really Delete?";
 			dialog.AddButton ("Cancel", (int) ResponseType.Cancel);
 			dialog.AddButton ("Delete", (int) ResponseType.Ok);
-			dialog.DefaultResponse = ResponseType.Ok;
+			dialog.DefaultResponse = (int) ResponseType.Ok;
 
 			string version_name = photo.GetVersionName (photo.DefaultVersionId);
 			Label label = new Label (String.Format ("Really delete version \"{0}\"?", version_name));
diff -u -r ../f-spot/src/TagCommands.cs ./src/TagCommands.cs
--- ../f-spot/src/TagCommands.cs	2004-05-14 21:06:02.000000000 +0200
+++ ./src/TagCommands.cs	2004-05-21 22:26:54.000000000 +0200
@@ -116,7 +116,7 @@
 			Glade.XML xml = new Glade.XML (null, "f-spot.glade", "create_tag_dialog", null);
 			xml.Autoconnect (this);
 
-			create_tag_dialog.DefaultResponse = ResponseType.Ok;
+			create_tag_dialog.DefaultResponse = (int) ResponseType.Ok;
 
 			switch (type) {
 			case TagType.Tag:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]