Changeset 3369

Show
Ignore:
Timestamp:
02/05/08 17:58:09
Author:
pvanhoof
Message:

Bindings documentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bindings/dotnet/README

    r3354 r3369  
     1# 
     2## .NET bindings for Tinymail 
     3# 
     4 
     5This is the documentation about the .NET bindings for Tinymail. 
     6 
     7# 
     8## About the patches 
     9# 
    110 
    211At this moment you need to apply the patch attached in the Novell bbug 
     
    817You also need to patch ./gtk-sharp-patch-02.diff discussed in Novell 
    918bug https://bugzilla.novell.com/show_bug.cgi?id=357324 
     19 
     20# 
     21## Instructions to get it working 
     22# 
     23 
     24svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp 
     25cd gtk-sharp 
     26 
     27# Depending on the version of GtkSharp, this might not be necessary. 
     28# Check the bugs mentioned above: 
     29 
     30patch -p0 < gtk-sharp-patch-01.diff 
     31patch -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 
     40make && sudo make install 
     41export PKG_CONFIG_PATH=/opt/gtk-sharp/lib/pkgconfig 
     42export PATH=$PATH:/opt/gtk-sharp/bin 
     43cd .. 
     44./autogen.sh --prefix=/opt/tinymail --enable-dotnet-bindings 
     45make && sudo make install 
     46 
     47# 
     48## Testing it with a little demo ui written in C# 
     49# 
     50 
     51cd tests/dotnet 
     52make 
     53mono dotnet-demo.exe 
     54 
     55 
  • trunk/bindings/dotnet/ui-gtk/FolderStoreTreeModel.custom

    r3368 r3369  
    88                public Tny.Folder GetFolder (Gtk.TreeIter iter) 
    99                { 
    10                         Tny.Folder retval; 
     10                        try { 
     11                                Tny.Folder retval; 
    1112 
    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 (); 
    1718 
    18                         return retval; 
     19                                return retval; 
     20                        } catch { 
     21                                return null; 
     22                        } 
    1923                } 
    2024 
    2125                public Tny.FolderStore GetFolderStore (Gtk.TreeIter iter) 
    2226                { 
    23                         Tny.FolderStore retval; 
     27                        try { 
     28                                Tny.FolderStore retval; 
    2429 
    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 (); 
    3035 
    31                         return retval; 
     36                                return retval; 
     37                        } catch { 
     38                                return null; 
     39                        } 
    3240                } 
    3341