Got rid of some gtk+-warnings about str being NULL
[mono.git] / mcs / class / System.Windows.Forms / Gtk / Control.cs
index f9c19b1600288baf1a0c851b192598adcf41a217..a89d605a3c11fed48bdb2e5696d841556a877e2b 100644 (file)
@@ -5,6 +5,7 @@
 //   Miguel de Icaza (miguel@ximian.com)
 //   Rachel Hestilow (hestilow@ximian.com)
 //   Joel Basson  (jstrike@mweb.co.za)
+//   Philip Van Hoof (me@freax.org)
 // (C) 2002 Ximian, Inc
 //
 
@@ -125,11 +126,13 @@ namespace System.Windows.Forms {
 
                static Control ()
                {
+                       Gtk.Application.Init ();
                        init_me = 1;
                }
                
                public Control () : this ("")
                {
+                       this.text = "";
                }
 
                public Control (string text) : this (null, text)
@@ -186,15 +189,15 @@ namespace System.Windows.Forms {
                }
 
 
-               public virtual string Name {\r
-                       get {\r
-                               return name;\r
-                       }\r
-\r
+               public virtual string Name {
+                       get {
+                               return name;
+                       }
+
                        set {
                                name = value;
                                Widget.Name = value;
-                       }\r
+                       }
                }
 
                public bool Enabled {
@@ -381,8 +384,37 @@ namespace System.Windows.Forms {
                                rightToLeft = value;
                        }
                }
+               
+               [MonoTODO]
+               protected virtual void OnLayout(LayoutEventArgs e)
+               {
+                       
+               }
+
+               [MonoTODO]
+               protected virtual void OnMouseDown(MouseEventArgs e)
+               {
+               }
+
+               [MonoTODO]
+               protected virtual void OnResize(EventArgs e)
+               {
+               }
+
+               [MonoTODO]
+               protected virtual void OnHandleDestroyed(EventArgs e)
+               {
+               }
 
+               [MonoTODO]
+               public virtual Font Font {
 
+                       get { throw new NotImplementedException(); }
+                       set { throw new NotImplementedException(); }
+               }
 
+               protected virtual Size DefaultSize {
+                       get { return new Size ( 100, 100 ); }
+               }
        }
 }