Changeset 3368

Show
Ignore:
Timestamp:
02/05/08 14:40:55
Author:
pvanhoof
Message:

Fixes for dotnet bindings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bindings/dotnet/platform/Init.cs

    r3366 r3368  
    11 
    2 public class Init { 
     2namespace Tny.Platform 
     3
     4        public class Init { 
    35 
    4         static void Initialize () { 
    5                 GtkSharp.LibtinymailPlatformSharp.ObjectManager.Initialize (); 
    6                 GtkSharp.LibtinymailCamelSharp.ObjectManager.Initialize (); 
    7                 // GtkSharp.LibtinymailuiGtkSharp.ObjectManager.Initialize (); 
     6                public static void Initialize () { 
     7                        GtkSharp.LibtinymailPlatformSharp.ObjectManager.Initialize (); 
     8                        GtkSharp.LibtinymailCamelSharp.ObjectManager.Initialize (); 
     9                        // GtkSharp.LibtinymailuiGtkSharp.ObjectManager.Initialize (); 
     10                } 
    811        } 
    912} 
  • trunk/bindings/dotnet/ui-gtk/FolderStoreTreeModel.custom

    r3355 r3368  
    88                public Tny.Folder GetFolder (Gtk.TreeIter iter) 
    99                { 
     10                        Tny.Folder retval; 
     11 
    1012                        int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn; 
    1113                        GLib.Value val = GLib.Value.Empty; 
    1214                        GetValue (iter, column, ref val); 
    13                         object ret = val.Val; 
     15                        retval = (Tny.Folder) val.Val; 
    1416                        val.Dispose (); 
    15                         return new Tny.FolderAdapter ((Tny.FolderImplementor) ret); 
     17 
     18                        return retval; 
    1619                } 
    1720 
    1821                public Tny.FolderStore GetFolderStore (Gtk.TreeIter iter) 
    1922                { 
     23                        Tny.FolderStore retval; 
     24 
    2025                        int column = (int) Tny.Ui.GTK.FolderStoreTreeModelColumn.InstanceColumn; 
    2126                        GLib.Value val = GLib.Value.Empty; 
    2227                        GetValue (iter, column, ref val); 
    23                         object ret = val.Val; 
     28                        retval = (Tny.FolderStore) val.Val; 
    2429                        val.Dispose (); 
    25                         return new Tny.FolderStoreAdapter ((Tny.FolderStoreImplementor) ret); 
     30 
     31                        return retval; 
    2632                } 
    2733