Changeset 3369
- Timestamp:
- 02/05/08 17:58:09
- Files:
-
- trunk/bindings/dotnet/README (modified) (2 diffs)
- trunk/bindings/dotnet/ui-gtk/FolderStoreTreeModel.custom (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bindings/dotnet/README
r3354 r3369 1 # 2 ## .NET bindings for Tinymail 3 # 4 5 This is the documentation about the .NET bindings for Tinymail. 6 7 # 8 ## About the patches 9 # 1 10 2 11 At this moment you need to apply the patch attached in the Novell bbug … … 8 17 You also need to patch ./gtk-sharp-patch-02.diff discussed in Novell 9 18 bug https://bugzilla.novell.com/show_bug.cgi?id=357324 19 20 # 21 ## Instructions to get it working 22 # 23 24 svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp 25 cd gtk-sharp 26 27 # Depending on the version of GtkSharp, this might not be necessary. 28 # Check the bugs mentioned above: 29 30 patch -p0 < gtk-sharp-patch-01.diff 31 patch -p0 < gtk-sharp-patch-02.diff 32 33 # Make sure that you DO set a prefix, else you will overwrite your 34 # existing GtkSharp installation with a patched one (not good) 35 # We just need the adapted generator, but GtkSharp's build system 36 # does not make it possible to compile just that part :-( : 37 38 ./boodstrap-2.12 --prefix=/opt/gtk-sharp 39 40 make && sudo make install 41 export PKG_CONFIG_PATH=/opt/gtk-sharp/lib/pkgconfig 42 export PATH=$PATH:/opt/gtk-sharp/bin 43 cd .. 44 ./autogen.sh --prefix=/opt/tinymail --enable-dotnet-bindings 45 make && sudo make install 46 47 # 48 ## Testing it with a little demo ui written in C# 49 # 50 51 cd tests/dotnet 52 make 53 mono dotnet-demo.exe 54 55 trunk/bindings/dotnet/ui-gtk/FolderStoreTreeModel.custom
r3368 r3369 8 8 public Tny.Folder GetFolder (Gtk.TreeIter iter) 9 9 { 10 Tny.Folder retval; 10 try { 11 Tny.Folder retval; 11 12 12 int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn;13 GLib.Value val = GLib.Value.Empty;14 GetValue (iter, column, ref val);15 retval = (Tny.Folder) val.Val;16 val.Dispose ();13 int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn; 14 GLib.Value val = GLib.Value.Empty; 15 GetValue (iter, column, ref val); 16 retval = (Tny.Folder) val.Val; 17 val.Dispose (); 17 18 18 return retval; 19 return retval; 20 } catch { 21 return null; 22 } 19 23 } 20 24 21 25 public Tny.FolderStore GetFolderStore (Gtk.TreeIter iter) 22 26 { 23 Tny.FolderStore retval; 27 try { 28 Tny.FolderStore retval; 24 29 25 int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn;26 GLib.Value val = GLib.Value.Empty;27 GetValue (iter, column, ref val);28 retval = (Tny.FolderStore) val.Val;29 val.Dispose ();30 int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn; 31 GLib.Value val = GLib.Value.Empty; 32 GetValue (iter, column, ref val); 33 retval = (Tny.FolderStore) val.Val; 34 val.Dispose (); 30 35 31 return retval; 36 return retval; 37 } catch { 38 return null; 39 } 32 40 } 33 41
