Hello,

This Patch changes occurrences of Gnome.App.Show() to
Gnome.App.ShowAll() in the tutorials that I wrote.

I've made this change because I just spent a good deal
of time trying to figure out why my application won't
display its contents.  (Because I simply copy and pasted
from my tutorial... and then used it as a basis to write
a real application.)

(For anything but the simplest of Apps, Show() will not
display the Application's contents.  You need to use ShowAll().
And since people will definitely be doing alot of copying &
pasting, from this book, it is important that we don't cause
readers any headaches.)


Could someone (with CVS access) please review this patch and
commit it.


Thanks.


See ya

-- 
     Charles Iliya Krempeaux, BSc
     [EMAIL PROTECTED]

________________________________________________________________________
 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/
Index: Changelog
===================================================================
RCS file: /mono/monkeyguide/Changelog,v
retrieving revision 1.33
diff -u -r1.33 Changelog
--- Changelog	9 Mar 2003 10:50:27 -0000	1.33
+++ Changelog	12 Mar 2003 01:06:07 -0000
@@ -1,3 +1,15 @@
+2003-03-11  Charles Iliya Krempeaux <[EMAIL PROTECTED]>
+	* People are going to be doing alot of copy & pasting from
+	  this book!... so, to prevent people from having many
+	  headaches from wondering why the contents of their App
+	  won't show, changing Gnome.App.Show() to Gnome.App.ShowAll().
+	* monkeyguide/html/en/gnome/bindings/gnome/adding_contents.html :
+	  Changed Show() to ShowAll().
+	* monkeyguide/html/en/gnome/bindings/gnome/hello_world.html :
+	  Changed Show() to ShowAll().
+	* monkeyguide/html/en/gnome/bindings/rsvg/hello_world.html :
+	  Changed Show() to ShowAll().
+
 2003-03-09  Martin Willemoes Hansen <[EMAIL PROTECTED]>
 	* Fixed up installation/linux.html added a Credits section to it.
 	* Applied Laurent Guerby <[EMAIL PROTECTED]> patch to 
Index: html/en/gnome/bindings/gnome/adding_contents.html
===================================================================
RCS file: /mono/monkeyguide/html/en/gnome/bindings/gnome/adding_contents.html,v
retrieving revision 1.1
diff -u -r1.1 adding_contents.html
--- html/en/gnome/bindings/gnome/adding_contents.html	23 Feb 2003 20:41:16 -0000	1.1
+++ html/en/gnome/bindings/gnome/adding_contents.html	12 Mar 2003 01:06:07 -0000
@@ -41,7 +41,7 @@
                     new Gnome.Program("Hello World", "1.0", Gnome.Modules.UI, args);
 
                     MyMainWindow app = new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
  
                     program.Run();
             }
Index: html/en/gnome/bindings/gnome/hello_world.html
===================================================================
RCS file: /mono/monkeyguide/html/en/gnome/bindings/gnome/hello_world.html,v
retrieving revision 1.4
diff -u -r1.4 hello_world.html
--- html/en/gnome/bindings/gnome/hello_world.html	23 Feb 2003 20:41:16 -0000	1.4
+++ html/en/gnome/bindings/gnome/hello_world.html	12 Mar 2003 01:06:07 -0000
@@ -34,7 +34,7 @@
                     new Gnome.Program("Hello World", "1.0", Gnome.Modules.UI, args);
 
                     Gnome.App app = new Gnome.App("Hello World", "Hello World");
-                    app.Show();
+                    app.ShowAll();
  
                     program.Run();
             }
@@ -97,7 +97,7 @@
         </p>
 
 <pre class="code">
-                    app.Show();
+                    app.ShowAll();
 </pre>
 
         <p>
@@ -143,7 +143,7 @@
                     new Gnome.Program("Hello World", "1.0", Gnome.Modules.UI, args);
 
                     MyMainWindow app = new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
  
                     program.Run();
             }
Index: html/en/gnome/bindings/rsvg/hello_world.html
===================================================================
RCS file: /mono/monkeyguide/html/en/gnome/bindings/rsvg/hello_world.html,v
retrieving revision 1.1
diff -u -r1.1 hello_world.html
--- html/en/gnome/bindings/rsvg/hello_world.html	26 Feb 2003 08:16:32 -0000	1.1
+++ html/en/gnome/bindings/rsvg/hello_world.html	12 Mar 2003 01:06:08 -0000
@@ -35,7 +35,7 @@
                     new Gnome.Program("SVG Hello World", "1.0", Gnome.Modules.UI, args);
 
                     MyMainWindow app = new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
  
                     program.Run();
             }

Reply via email to