cvs: presentations /slides/gtk agata.png clock.xml connecting.xml connecting2.xml containers.xml creating.xml events.xml focus.xml gencontainer.xml
intro.xml mainloop2.xml showing.xml signals.xml sizepos.xml tempconv.xml widgets.xml windows2.xml
| From: | Andrei Zmievski | Date: | Wed, 28 Jul 2004 18:17:18 +0000 |
| Subject: | cvs: presentations /slides/gtk agata.png clock.xml connecting.xml connecting2.xml containers.xml creating.xml events.xml focus.xml gencontainer.xml intro.xml mainloop2.xml showing.xml signals.xml sizepos.xml tempconv.xml widgets.xml windows2.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1011@lists.php.net to get a copy of this message | ||
andrei Wed Jul 28 14:17:18 2004 EDT
Modified files:
/presentations/slides/gtk agata.png clock.xml connecting.xml
connecting2.xml containers.xml
creating.xml events.xml focus.xml
gencontainer.xml intro.xml mainloop2.xml
showing.xml signals.xml sizepos.xml
tempconv.xml widgets.xml windows2.xml
Log:
Update.
http://cvs.php.net/diff.php/presentations/slides/gtk/agata.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/agata.png http://cvs.php.net/diff.php/presentations/slides/gtk/clock.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/clock.xml diff -u presentations/slides/gtk/clock.xml:1.1 presentations/slides/gtk/clock.xml:1.2 --- presentations/slides/gtk/clock.xml:1.1 Wed Jan 21 17:44:41 2004 +++ presentations/slides/gtk/clock.xml Wed Jul 28 14:17:17 2004 @@ -1,7 +1,7 @@ <slide title="A Simple Clock" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - "Hello, World" programs are boring. Let's do something a little more + "Hello, World" programs are boring. Let's do something slightly more interesting. </blurb> <link align="center" text="Clock" href="presentations/slides/gtk/clock.php" /> http://cvs.php.net/diff.php/presentations/slides/gtk/connecting.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/connecting.xml diff -u presentations/slides/gtk/connecting.xml:1.1 presentations/slides/gtk/connecting.xml:1.2 --- presentations/slides/gtk/connecting.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/connecting.xml Wed Jul 28 14:17:17 2004 @@ -1,9 +1,10 @@ <slide title="Connecting Signals" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - The most basic way of connecting a signal to a callback with with - %connect()% method. For example, to respond to a %'clicked'% signal on - a *GtkButton* widget, you would do this: + The most basic way of connecting a signal to a callback is by using + %connect()% method. All classes descended from *GtkObject* have it. For + example, to respond to a %'clicked'% signal on a *GtkButton* widget, you would + do this: </blurb> <example fontsize="1ex"><![CDATA[<?php function on_ok_clicked($button) { } http://cvs.php.net/diff.php/presentations/slides/gtk/connecting2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/connecting2.xml diff -u presentations/slides/gtk/connecting2.xml:1.1 presentations/slides/gtk/connecting2.xml:1.2 --- presentations/slides/gtk/connecting2.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/connecting2.xml Wed Jul 28 14:17:17 2004 @@ -17,7 +17,7 @@ $conn_id = $ok_button->connect('clicked', 'on_ok_clicked'); $ok_button->signal_handler_block($conn_id); // disable callback $ok_button->signal_handler_unblock($conn_id); // re-enable callback - $ok_button->disconnect($conn_id); // remove callback + $ok_button->disconnect($conn_id); // remove callback permanently ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/containers.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/containers.xml diff -u presentations/slides/gtk/containers.xml:1.1 presentations/slides/gtk/containers.xml:1.2 --- presentations/slides/gtk/containers.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/containers.xml Wed Jul 28 14:17:17 2004 @@ -8,7 +8,7 @@ <bullet fontsize="3ex">table</bullet> <bullet fontsize="3ex">button</bullet> </list> - <blurb>The contained widgets are called container ~children~.</blurb> + <blurb>The contained widgets are container's ~children~.</blurb> <blurb>Containers usually respond to resize events and addition and removal of children by reallocating the available space among its remaining children.</blurb> <blurb>Since a container is also a widget, we can nest containers to an arbitrary degree: a vertical box containing a table containing a button containing a label.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/creating.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/gtk/creating.xml diff -u presentations/slides/gtk/creating.xml:1.2 presentations/slides/gtk/creating.xml:1.3 --- presentations/slides/gtk/creating.xml:1.2 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/creating.xml Wed Jul 28 14:17:17 2004 @@ -3,7 +3,7 @@ <blurb> To create a widget, use |0033aa|%&new%| operator instead of |0033aa|%new%|. Some widgets take constructor parameters to initialize - themselves to some state. + themselves with. </blurb> <example fontsize="1.5ex"><![CDATA[<?php $vbox =& new GtkVBox(false, 5); ?>]]></example> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/events.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/events.xml diff -u presentations/slides/gtk/events.xml:1.1 presentations/slides/gtk/events.xml:1.2 --- presentations/slides/gtk/events.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/events.xml Wed Jul 28 14:17:17 2004 @@ -1,7 +1,7 @@ <slide title="Theory: Events" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb>In addition to signals, there are low-level ~events~ corresponding - to the X Window system event mechanism. They can be connected to, just like signals. These events are:</blurb> + to the X Window system event mechanism. They can be connected just like signals. These events are:</blurb> <list fontsize="1.2ex"> <bullet>event</bullet> http://cvs.php.net/diff.php/presentations/slides/gtk/focus.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/focus.xml diff -u presentations/slides/gtk/focus.xml:1.1 presentations/slides/gtk/focus.xml:1.2 --- presentations/slides/gtk/focus.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/focus.xml Wed Jul 28 14:17:17 2004 @@ -2,8 +2,8 @@ <blurb> Widgets can grab the keyboard focus if needed, but it only makes sense for - those that interact with keyboard with some way. So, *GtkEntry* will work for - example, while *GtkArrow* won't. + the ones that interact with keyboard in some way. So, *GtkEntry* will work, for + example, while *GtkArrow* will not. </blurb> <example fontsize="1.5ex"><![CDATA[<?php $entry->grab_focus(); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/gtk/gencontainer.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/gencontainer.xml diff -u presentations/slides/gtk/gencontainer.xml:1.1 presentations/slides/gtk/gencontainer.xml:1.2 --- presentations/slides/gtk/gencontainer.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/gencontainer.xml Wed Jul 28 14:17:17 2004 @@ -6,7 +6,7 @@ example of this container is a regular button. </blurb> <blurb> - To add to or remove a widget from a container: + To add to or remove a widget from such a container: </blurb> <example fontsize="1ex"><![CDATA[<?php $container->add($widget); @@ -20,8 +20,8 @@ $child_widgets = $container->children; ?>]]></example> <blurb> - In either case %$child_widgets% will be an array of widgets, but the second - approach lets you access a specific child directly, e.g. + In either case %$child_widgets% will be an array of immediate children, but + the second approach lets you access a specific child directly, e.g. %$container->children[0]%. </blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/intro.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/intro.xml diff -u presentations/slides/gtk/intro.xml:1.1 presentations/slides/gtk/intro.xml:1.2 --- presentations/slides/gtk/intro.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/intro.xml Wed Jul 28 14:17:17 2004 @@ -4,8 +4,11 @@ <bullet effect="hide">if you know what PHP is</bullet> <bullet effect="hide">if you know what Gtk+ or Qt or Motif is</bullet> <bullet effect="hide">if you know what PHP-GTK is</bullet> + <bullet effect="hide">if you ever wished life had an Undo function</bullet> + <bullet effect="hide">if you have figured out what the last 5 minutes of Tim + Burton's ~Planet of the Apes~ remake were all about></bullet> </list> - <blurb effect="hide">Do you really know what PHP + just the right amount of other technology can do?</blurb> + <blurb effect="hide">Do you know what PHP + just the right amount of other technology can do?</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/mainloop2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/mainloop2.xml diff -u presentations/slides/gtk/mainloop2.xml:1.1 presentations/slides/gtk/mainloop2.xml:1.2 --- presentations/slides/gtk/mainloop2.xml:1.1 Wed Jan 21 17:44:41 2004 +++ presentations/slides/gtk/mainloop2.xml Wed Jul 28 14:17:17 2004 @@ -24,7 +24,7 @@ </blurb> <example fontsize="1ex"><![CDATA[<?php function show_log($stream, $condition, $my_data) { } - $stream = ...; // open the log via pipe, for example + $stream = ...; // open the log via file, pipe, or socket gtk::input_add($stream, GDK_INPUT_READ, 'show_log', $some_data); gtk::main(); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/gtk/showing.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/showing.xml diff -u presentations/slides/gtk/showing.xml:1.1 presentations/slides/gtk/showing.xml:1.2 --- presentations/slides/gtk/showing.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/showing.xml Wed Jul 28 14:17:17 2004 @@ -16,7 +16,8 @@ <blurb> If a widget is inside a container and you call %show()% on it, it will not - appear on screen until the container itself has been shown. + appear on screen until the container itself has been shown. This is useful for + visibility display of the main window, for example. </blurb> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/signals.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/gtk/signals.xml diff -u presentations/slides/gtk/signals.xml:1.2 presentations/slides/gtk/signals.xml:1.3 --- presentations/slides/gtk/signals.xml:1.2 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/signals.xml Wed Jul 28 14:17:17 2004 @@ -16,9 +16,9 @@ internal ~handler~, but one or more custom handlers can be ~connected~ to a signal to initiate some sort of response.</blurb> - <blurb>For example, the 'OK' button in a dialog (a GtkButton) has - the *clicked* signal that is emitted when the user clicks the button with the - mouse. You may want to connect a custom handler to this signal in order to - perform an action that the 'OK' button implies.</blurb> + <blurb>For example, the 'OK' button (GtkButton) has the *clicked* signal that + is emitted when the user clicks the button with the mouse. You may want to + connect a custom handler to this signal in order to perform an action that the + 'OK' button implies.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/sizepos.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/sizepos.xml diff -u presentations/slides/gtk/sizepos.xml:1.1 presentations/slides/gtk/sizepos.xml:1.2 --- presentations/slides/gtk/sizepos.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/sizepos.xml Wed Jul 28 14:17:17 2004 @@ -5,7 +5,7 @@ widget explicitly. The reason is that this disregards any external constraints that might be imposed on a widget, such as user's preference for the font size, resizing of the dialog box, the length of the button label in another - language. It is best to let the containers chooise the sizing and placement of + language. It is best to let the containers choose the sizing and placement of their children. </blurb> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/tempconv.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/tempconv.xml diff -u presentations/slides/gtk/tempconv.xml:1.1 presentations/slides/gtk/tempconv.xml:1.2 --- presentations/slides/gtk/tempconv.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/tempconv.xml Wed Jul 28 14:17:17 2004 @@ -1,8 +1,7 @@ <slide title="Small Example" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - "Hello, World" programs are boring. Let's do something a little more useful - that also bridges the gap between cultures. + Now let's write something that also bridges the gap between cultures. </blurb> <link align="center" text="Temperature Conversion" href="presentations/slides/gtk/tempconv.php" /> http://cvs.php.net/diff.php/presentations/slides/gtk/widgets.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/widgets.xml diff -u presentations/slides/gtk/widgets.xml:1.1 presentations/slides/gtk/widgets.xml:1.2 --- presentations/slides/gtk/widgets.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/widgets.xml Wed Jul 28 14:17:17 2004 @@ -9,6 +9,8 @@ <bullet fontsize="3ex">tree</bullet> </list> <blurb>A widget usually has a window on which it draws itself.</blurb> - <blurb>Some widgets are invisible.</blurb> + <blurb>Some widgets are invisible - they draw on the window underneath them..</blurb> + <blurb>And some important classes, such as *GtkAdjustment* are not widgets at + all.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/windows2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/windows2.xml diff -u presentations/slides/gtk/windows2.xml:1.1 presentations/slides/gtk/windows2.xml:1.2 --- presentations/slides/gtk/windows2.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/windows2.xml Wed Jul 28 14:17:17 2004 @@ -10,7 +10,7 @@ <example fontsize="1ex"><![CDATA[<?php $window->set_position($position); ?>]]></example> <blurb fontsize="2ex"> Where %$position% can be %'center'% (center of screen), %'mouse'% (under the - cursor), or %'none'% (let window manager place it). + cursor), or %'none'% (let the window manager place it). </blurb> <blurb fontsize="2ex"> If you want to make window respond to resizing in a certain way, you have to
http://cvs.php.net/diff.php/presentations/slides/gtk/agata.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/agata.png http://cvs.php.net/diff.php/presentations/slides/gtk/clock.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/clock.xml diff -u presentations/slides/gtk/clock.xml:1.1 presentations/slides/gtk/clock.xml:1.2 --- presentations/slides/gtk/clock.xml:1.1 Wed Jan 21 17:44:41 2004 +++ presentations/slides/gtk/clock.xml Wed Jul 28 14:17:17 2004 @@ -1,7 +1,7 @@ <slide title="A Simple Clock" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - "Hello, World" programs are boring. Let's do something a little more + "Hello, World" programs are boring. Let's do something slightly more interesting. </blurb> <link align="center" text="Clock" href="presentations/slides/gtk/clock.php" /> http://cvs.php.net/diff.php/presentations/slides/gtk/connecting.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/connecting.xml diff -u presentations/slides/gtk/connecting.xml:1.1 presentations/slides/gtk/connecting.xml:1.2 --- presentations/slides/gtk/connecting.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/connecting.xml Wed Jul 28 14:17:17 2004 @@ -1,9 +1,10 @@ <slide title="Connecting Signals" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - The most basic way of connecting a signal to a callback with with - %connect()% method. For example, to respond to a %'clicked'% signal on - a *GtkButton* widget, you would do this: + The most basic way of connecting a signal to a callback is by using + %connect()% method. All classes descended from *GtkObject* have it. For + example, to respond to a %'clicked'% signal on a *GtkButton* widget, you would + do this: </blurb> <example fontsize="1ex"><![CDATA[<?php function on_ok_clicked($button) { } http://cvs.php.net/diff.php/presentations/slides/gtk/connecting2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/connecting2.xml diff -u presentations/slides/gtk/connecting2.xml:1.1 presentations/slides/gtk/connecting2.xml:1.2 --- presentations/slides/gtk/connecting2.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/connecting2.xml Wed Jul 28 14:17:17 2004 @@ -17,7 +17,7 @@ $conn_id = $ok_button->connect('clicked', 'on_ok_clicked'); $ok_button->signal_handler_block($conn_id); // disable callback $ok_button->signal_handler_unblock($conn_id); // re-enable callback - $ok_button->disconnect($conn_id); // remove callback + $ok_button->disconnect($conn_id); // remove callback permanently ?>]]></example> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/containers.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/containers.xml diff -u presentations/slides/gtk/containers.xml:1.1 presentations/slides/gtk/containers.xml:1.2 --- presentations/slides/gtk/containers.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/containers.xml Wed Jul 28 14:17:17 2004 @@ -8,7 +8,7 @@ <bullet fontsize="3ex">table</bullet> <bullet fontsize="3ex">button</bullet> </list> - <blurb>The contained widgets are called container ~children~.</blurb> + <blurb>The contained widgets are container's ~children~.</blurb> <blurb>Containers usually respond to resize events and addition and removal of children by reallocating the available space among its remaining children.</blurb> <blurb>Since a container is also a widget, we can nest containers to an arbitrary degree: a vertical box containing a table containing a button containing a label.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/creating.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/gtk/creating.xml diff -u presentations/slides/gtk/creating.xml:1.2 presentations/slides/gtk/creating.xml:1.3 --- presentations/slides/gtk/creating.xml:1.2 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/creating.xml Wed Jul 28 14:17:17 2004 @@ -3,7 +3,7 @@ <blurb> To create a widget, use |0033aa|%&new%| operator instead of |0033aa|%new%|. Some widgets take constructor parameters to initialize - themselves to some state. + themselves with. </blurb> <example fontsize="1.5ex"><![CDATA[<?php $vbox =& new GtkVBox(false, 5); ?>]]></example> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/events.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/events.xml diff -u presentations/slides/gtk/events.xml:1.1 presentations/slides/gtk/events.xml:1.2 --- presentations/slides/gtk/events.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/events.xml Wed Jul 28 14:17:17 2004 @@ -1,7 +1,7 @@ <slide title="Theory: Events" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb>In addition to signals, there are low-level ~events~ corresponding - to the X Window system event mechanism. They can be connected to, just like signals. These events are:</blurb> + to the X Window system event mechanism. They can be connected just like signals. These events are:</blurb> <list fontsize="1.2ex"> <bullet>event</bullet> http://cvs.php.net/diff.php/presentations/slides/gtk/focus.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/focus.xml diff -u presentations/slides/gtk/focus.xml:1.1 presentations/slides/gtk/focus.xml:1.2 --- presentations/slides/gtk/focus.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/focus.xml Wed Jul 28 14:17:17 2004 @@ -2,8 +2,8 @@ <blurb> Widgets can grab the keyboard focus if needed, but it only makes sense for - those that interact with keyboard with some way. So, *GtkEntry* will work for - example, while *GtkArrow* won't. + the ones that interact with keyboard in some way. So, *GtkEntry* will work, for + example, while *GtkArrow* will not. </blurb> <example fontsize="1.5ex"><![CDATA[<?php $entry->grab_focus(); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/gtk/gencontainer.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/gencontainer.xml diff -u presentations/slides/gtk/gencontainer.xml:1.1 presentations/slides/gtk/gencontainer.xml:1.2 --- presentations/slides/gtk/gencontainer.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/gencontainer.xml Wed Jul 28 14:17:17 2004 @@ -6,7 +6,7 @@ example of this container is a regular button. </blurb> <blurb> - To add to or remove a widget from a container: + To add to or remove a widget from such a container: </blurb> <example fontsize="1ex"><![CDATA[<?php $container->add($widget); @@ -20,8 +20,8 @@ $child_widgets = $container->children; ?>]]></example> <blurb> - In either case %$child_widgets% will be an array of widgets, but the second - approach lets you access a specific child directly, e.g. + In either case %$child_widgets% will be an array of immediate children, but + the second approach lets you access a specific child directly, e.g. %$container->children[0]%. </blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/intro.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/intro.xml diff -u presentations/slides/gtk/intro.xml:1.1 presentations/slides/gtk/intro.xml:1.2 --- presentations/slides/gtk/intro.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/intro.xml Wed Jul 28 14:17:17 2004 @@ -4,8 +4,11 @@ <bullet effect="hide">if you know what PHP is</bullet> <bullet effect="hide">if you know what Gtk+ or Qt or Motif is</bullet> <bullet effect="hide">if you know what PHP-GTK is</bullet> + <bullet effect="hide">if you ever wished life had an Undo function</bullet> + <bullet effect="hide">if you have figured out what the last 5 minutes of Tim + Burton's ~Planet of the Apes~ remake were all about></bullet> </list> - <blurb effect="hide">Do you really know what PHP + just the right amount of other technology can do?</blurb> + <blurb effect="hide">Do you know what PHP + just the right amount of other technology can do?</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/mainloop2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/mainloop2.xml diff -u presentations/slides/gtk/mainloop2.xml:1.1 presentations/slides/gtk/mainloop2.xml:1.2 --- presentations/slides/gtk/mainloop2.xml:1.1 Wed Jan 21 17:44:41 2004 +++ presentations/slides/gtk/mainloop2.xml Wed Jul 28 14:17:17 2004 @@ -24,7 +24,7 @@ </blurb> <example fontsize="1ex"><![CDATA[<?php function show_log($stream, $condition, $my_data) { } - $stream = ...; // open the log via pipe, for example + $stream = ...; // open the log via file, pipe, or socket gtk::input_add($stream, GDK_INPUT_READ, 'show_log', $some_data); gtk::main(); ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/gtk/showing.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/showing.xml diff -u presentations/slides/gtk/showing.xml:1.1 presentations/slides/gtk/showing.xml:1.2 --- presentations/slides/gtk/showing.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/showing.xml Wed Jul 28 14:17:17 2004 @@ -16,7 +16,8 @@ <blurb> If a widget is inside a container and you call %show()% on it, it will not - appear on screen until the container itself has been shown. + appear on screen until the container itself has been shown. This is useful for + visibility display of the main window, for example. </blurb> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/signals.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/gtk/signals.xml diff -u presentations/slides/gtk/signals.xml:1.2 presentations/slides/gtk/signals.xml:1.3 --- presentations/slides/gtk/signals.xml:1.2 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/signals.xml Wed Jul 28 14:17:17 2004 @@ -16,9 +16,9 @@ internal ~handler~, but one or more custom handlers can be ~connected~ to a signal to initiate some sort of response.</blurb> - <blurb>For example, the 'OK' button in a dialog (a GtkButton) has - the *clicked* signal that is emitted when the user clicks the button with the - mouse. You may want to connect a custom handler to this signal in order to - perform an action that the 'OK' button implies.</blurb> + <blurb>For example, the 'OK' button (GtkButton) has the *clicked* signal that + is emitted when the user clicks the button with the mouse. You may want to + connect a custom handler to this signal in order to perform an action that the + 'OK' button implies.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/sizepos.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/sizepos.xml diff -u presentations/slides/gtk/sizepos.xml:1.1 presentations/slides/gtk/sizepos.xml:1.2 --- presentations/slides/gtk/sizepos.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/sizepos.xml Wed Jul 28 14:17:17 2004 @@ -5,7 +5,7 @@ widget explicitly. The reason is that this disregards any external constraints that might be imposed on a widget, such as user's preference for the font size, resizing of the dialog box, the length of the button label in another - language. It is best to let the containers chooise the sizing and placement of + language. It is best to let the containers choose the sizing and placement of their children. </blurb> <blurb> http://cvs.php.net/diff.php/presentations/slides/gtk/tempconv.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/tempconv.xml diff -u presentations/slides/gtk/tempconv.xml:1.1 presentations/slides/gtk/tempconv.xml:1.2 --- presentations/slides/gtk/tempconv.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/tempconv.xml Wed Jul 28 14:17:17 2004 @@ -1,8 +1,7 @@ <slide title="Small Example" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> - "Hello, World" programs are boring. Let's do something a little more useful - that also bridges the gap between cultures. + Now let's write something that also bridges the gap between cultures. </blurb> <link align="center" text="Temperature Conversion" href="presentations/slides/gtk/tempconv.php" /> http://cvs.php.net/diff.php/presentations/slides/gtk/widgets.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/widgets.xml diff -u presentations/slides/gtk/widgets.xml:1.1 presentations/slides/gtk/widgets.xml:1.2 --- presentations/slides/gtk/widgets.xml:1.1 Wed Jan 7 18:49:18 2004 +++ presentations/slides/gtk/widgets.xml Wed Jul 28 14:17:17 2004 @@ -9,6 +9,8 @@ <bullet fontsize="3ex">tree</bullet> </list> <blurb>A widget usually has a window on which it draws itself.</blurb> - <blurb>Some widgets are invisible.</blurb> + <blurb>Some widgets are invisible - they draw on the window underneath them..</blurb> + <blurb>And some important classes, such as *GtkAdjustment* are not widgets at + all.</blurb> </slide> http://cvs.php.net/diff.php/presentations/slides/gtk/windows2.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/gtk/windows2.xml diff -u presentations/slides/gtk/windows2.xml:1.1 presentations/slides/gtk/windows2.xml:1.2 --- presentations/slides/gtk/windows2.xml:1.1 Sun Jan 18 19:51:45 2004 +++ presentations/slides/gtk/windows2.xml Wed Jul 28 14:17:17 2004 @@ -10,7 +10,7 @@ <example fontsize="1ex"><![CDATA[<?php $window->set_position($position); ?>]]></example> <blurb fontsize="2ex"> Where %$position% can be %'center'% (center of screen), %'mouse'% (under the - cursor), or %'none'% (let window manager place it). + cursor), or %'none'% (let the window manager place it). </blurb> <blurb fontsize="2ex"> If you want to make window respond to resizing in a certain way, you have to