- new, fixes namespace issues and attempt to write to readonly foreach variable
authorMichał Łukaszek <mlukaszek+pld@gmail.com>
Wed, 5 Apr 2006 01:51:39 +0000 (01:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bless-buildfixes.patch -> 1.1

bless-buildfixes.patch [new file with mode: 0644]

diff --git a/bless-buildfixes.patch b/bless-buildfixes.patch
new file mode 100644 (file)
index 0000000..5dd31d7
--- /dev/null
@@ -0,0 +1,48 @@
+diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs
+--- bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs 2005-09-11 18:22:16.000000000 +0200
++++ bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs      2006-04-03 08:03:21.000000000 +0200
+@@ -63,8 +63,8 @@
+       {
+ #if ENABLE_UNIX_SPECIFIC
+               // get info about the device the file will be saved on
+-              Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
+-              Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
++              Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
++              Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
+                       
+               long freeSpace=(long)(stat.f_bavail*stat.f_bsize);
+                       
+diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs bless-0.4.0/src/ByteBuffer/SaveOperation.cs
+--- bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs   2005-05-11 22:10:19.000000000 +0200
++++ bless-0.4.0/src/ByteBuffer/SaveOperation.cs        2006-04-03 08:03:09.000000000 +0200
+@@ -53,8 +53,8 @@
+               // get info about the device the file will be saved on
+               FileInfo fi=new FileInfo(bb.Filename);
+                       
+-              Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
+-              Mono.Unix.Syscall.statvfs(bb.Filename, out stat);
++              Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
++              Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat);
+                       
+               long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length;
+                       
+diff -uNr bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs
+--- bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs     2005-02-07 12:46:46.000000000 +0100
++++ bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs  2006-04-05 03:42:24.000000000 +0200
+@@ -78,12 +78,11 @@
+                       
+                       tv.AppendColumn ("Save", crt, "active", 0);
+                       tv.AppendColumn ("Name", new CellRendererText(), "text", 1);
+-                      
+-                      foreach (SaveFileItem item in list) {
+-                              item.Save=true;
+-                              store.AppendValues(item.Save, item.Name);       
++
++                      for (int i=0; i<list.Length; ++i) {
++                          list[i].Save=true;
++                          store.AppendValues(list[i].Save, list[i].Name);
+                       }
+-                       
+                       return tv;
+               }
+               
This page took 0.065864 seconds and 4 git commands to generate.