Got rid of some gtk+-warnings about str being NULL
authorPhilip Van Hoof <pvanhoof@mono-cvs.ximian.com>
Mon, 30 Jun 2003 23:07:00 +0000 (23:07 -0000)
committerPhilip Van Hoof <pvanhoof@mono-cvs.ximian.com>
Mon, 30 Jun 2003 23:07:00 +0000 (23:07 -0000)
svn path=/trunk/mcs/; revision=15795

mcs/class/System.Windows.Forms/Gtk/Control.cs
mcs/class/System.Windows.Forms/Gtk/Label.cs
mcs/class/System.Windows.Forms/Gtk/MenuItem.cs

index 46a8b3a6b214957656fa08da5b17cc0540fd26e0..a89d605a3c11fed48bdb2e5696d841556a877e2b 100644 (file)
@@ -132,6 +132,7 @@ namespace System.Windows.Forms {
                
                public Control () : this ("")
                {
+                       this.text = "";
                }
 
                public Control (string text) : this (null, text)
index 982c0a68f8af65d18d4f771deec0a0a001d21af5..15047707464f3c391b9d429f347c1fe70059a553 100644 (file)
@@ -19,6 +19,7 @@ namespace System.Windows.Forms {
        
        public Label () : base ()
        {
+               this.Text = " ";
        }
                
        //public virtual bool AutoSize {
index 8ddb9e02f4c98bc6fda927316c4928dceb7e475b..30e0d5ac75605308a87a1d4862b43c89bbf3486c 100644 (file)
@@ -14,7 +14,7 @@ namespace System.Windows.Forms{
 
                public MenuItemCollection MenuItems;
                internal Gtk.MenuItem file_item;
-               String text, text2;
+               String text="", text2="";
                bool check1, blChecked;
                private Shortcut shortcut;