[Mono-docs-list] [Patch] Gnome.App.Show() -> Gnome.App.ShowAll()

Charles Iliya Krempeaux charles@reptile.ca
11 Mar 2003 17:18:16 -0800


--=-Rq1djwzn436UIWtlZlmb
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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
     charles@reptile.ca

________________________________________________________________________
 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/

--=-Rq1djwzn436UIWtlZlmb
Content-Disposition: attachment; filename=monkeyguide-ShowAll-correction.diff
Content-Type: text/x-patch; name=monkeyguide-ShowAll-correction.diff; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Index: Changelog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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 <charles@reptile.ca>
+	* 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 <mwh@sysrq.dk>
 	* Fixed up installation/linux.html added a Credits section to it.
 	* Applied Laurent Guerby <guerby@acm.org> patch to=20
Index: html/en/gnome/bindings/gnome/adding_contents.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /mono/monkeyguide/html/en/gnome/bindings/gnome/adding_contents.ht=
ml,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);
=20
                     MyMainWindow app =3D new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
 =20
                     program.Run();
             }
Index: html/en/gnome/bindings/gnome/hello_world.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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 -000=
0	1.4
+++ html/en/gnome/bindings/gnome/hello_world.html	12 Mar 2003 01:06:07 -000=
0
@@ -34,7 +34,7 @@
                     new Gnome.Program("Hello World", "1.0", Gnome.Modules.=
UI, args);
=20
                     Gnome.App app =3D new Gnome.App("Hello World", "Hello =
World");
-                    app.Show();
+                    app.ShowAll();
 =20
                     program.Run();
             }
@@ -97,7 +97,7 @@
         </p>
=20
 <pre class=3D"code">
-                    app.Show();
+                    app.ShowAll();
 </pre>
=20
         <p>
@@ -143,7 +143,7 @@
                     new Gnome.Program("Hello World", "1.0", Gnome.Modules.=
UI, args);
=20
                     MyMainWindow app =3D new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
 =20
                     program.Run();
             }
Index: html/en/gnome/bindings/rsvg/hello_world.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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.Modu=
les.UI, args);
=20
                     MyMainWindow app =3D new MyMainWindow(program);
-                    app.Show();
+                    app.ShowAll();
 =20
                     program.Run();
             }

--=-Rq1djwzn436UIWtlZlmb--