]>
Commit | Line | Data |
---|---|---|
71f129a9 MŁ |
1 | diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs |
2 | --- bless-0.4.0.orig/src/ByteBuffer/SaveAsOperation.cs 2005-09-11 18:22:16.000000000 +0200 | |
3 | +++ bless-0.4.0/src/ByteBuffer/SaveAsOperation.cs 2006-04-03 08:03:21.000000000 +0200 | |
4 | @@ -63,8 +63,8 @@ | |
5 | { | |
6 | #if ENABLE_UNIX_SPECIFIC | |
7 | // get info about the device the file will be saved on | |
8 | - Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs(); | |
9 | - Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat); | |
10 | + Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs(); | |
11 | + Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat); | |
12 | ||
13 | long freeSpace=(long)(stat.f_bavail*stat.f_bsize); | |
14 | ||
15 | diff -uNr bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs bless-0.4.0/src/ByteBuffer/SaveOperation.cs | |
16 | --- bless-0.4.0.orig/src/ByteBuffer/SaveOperation.cs 2005-05-11 22:10:19.000000000 +0200 | |
17 | +++ bless-0.4.0/src/ByteBuffer/SaveOperation.cs 2006-04-03 08:03:09.000000000 +0200 | |
18 | @@ -53,8 +53,8 @@ | |
19 | // get info about the device the file will be saved on | |
20 | FileInfo fi=new FileInfo(bb.Filename); | |
21 | ||
22 | - Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs(); | |
23 | - Mono.Unix.Syscall.statvfs(bb.Filename, out stat); | |
24 | + Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs(); | |
25 | + Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat); | |
26 | ||
27 | long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length; | |
28 | ||
29 | diff -uNr bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs | |
30 | --- bless-0.4.0.orig/src/gui/dialogs/SaveConfirmationMultiAlert.cs 2005-02-07 12:46:46.000000000 +0100 | |
31 | +++ bless-0.4.0/src/gui/dialogs/SaveConfirmationMultiAlert.cs 2006-04-05 03:42:24.000000000 +0200 | |
32 | @@ -78,12 +78,11 @@ | |
33 | ||
34 | tv.AppendColumn ("Save", crt, "active", 0); | |
35 | tv.AppendColumn ("Name", new CellRendererText(), "text", 1); | |
36 | - | |
37 | - foreach (SaveFileItem item in list) { | |
38 | - item.Save=true; | |
39 | - store.AppendValues(item.Save, item.Name); | |
40 | + | |
41 | + for (int i=0; i<list.Length; ++i) { | |
42 | + list[i].Save=true; | |
43 | + store.AppendValues(list[i].Save, list[i].Name); | |
44 | } | |
45 | - | |
46 | return tv; | |
47 | } | |
48 |