cvs: php-gtk-doc /examples/reference/gtk/gtkiconview constructor.phpw /examples/reference/gtk/gtktextbuffer buffer_from_view.phpw constructor.phpw
/manual/en/reference/gtk gtktextbuffer.xml
| From: | Christian Weiske | Date: | Thu, 27 Oct 2005 07:15:45 +0000 |
| Subject: | cvs: php-gtk-doc /examples/reference/gtk/gtkiconview constructor.phpw /examples/reference/gtk/gtktextbuffer buffer_from_view.phpw constructor.phpw /manual/en/reference/gtk gtktextbuffer.xml |
||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1579@lists.php.net to get a copy of this message | ||
cweiske Thu Oct 27 03:15:45 2005 EDT
Added files:
/php-gtk-doc/examples/reference/gtk/gtktextbuffer
buffer_from_view.phpw
constructor.phpw
Modified files:
/php-gtk-doc/examples/reference/gtk/gtkiconview constructor.phpw
/php-gtk-doc/manual/en/reference/gtk gtktextbuffer.xml
Log:
- Adjusted examples to some api changes
- Moved GtkTextBuffer examples to separate php files
http://cvs.php.net/diff.php/php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw?r1=1.1&r2=1.2&ty=u
Index: php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw
diff -u php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw:1.1
php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw:1.2
--- php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw:1.1 Mon Aug 1 14:07:20 2005
+++ php-gtk-doc/examples/reference/gtk/gtkiconview/constructor.phpw Thu Oct 27 03:15:40 2005
@@ -3,7 +3,7 @@
$wnd = new GtkWindow();
$wnd->set_title('GtkIconView');
$wnd->set_default_size(400, 400);
-$wnd->connect_object('destroy', array('gtk', 'main_quit'));
+$wnd->connect_simple('destroy', array('gtk', 'main_quit'));
$iv = new GtkIconView();
http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml?r1=1.7&r2=1.8&ty=u
Index: php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml:1.7
php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml:1.8
--- php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml:1.7 Tue Aug 2 07:01:45 2005
+++ php-gtk-doc/manual/en/reference/gtk/gtktextbuffer.xml Thu Oct 27 03:15:44 2005
@@ -30,35 +30,10 @@
<example>
<title>Simple use of GtkTextBuffer.</title>
<programlisting role="php">
-<![CDATA[
-<?php
-// Make sure the PHP-GTK 2 extension is loaded.
-if (!extension_loaded('php-gtk')) {
- dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);
-}
-
-// Create a new window.
-$window = new GtkWindow();
-// Properly handle closing of the window.
-$window->connect_object('destroy', array('gtk', 'main_quit'));
-
-// Create a new buffer and a new view to show the buffer.
-$textBuffer = new GtkTextBuffer();
-$textView = new GtkTextView();
-
-// Add some text to the buffer.
-$textBuffer->set_text('Hello World!', -1);
-
-// Add the buffer to the view and make sure no one edits the text.
-$textView->set_buffer($textBuffer);
-$textView->set_editable(false);
-
-// Add the view to the window, show everything, and start the main loop.
-$window->add($textView);
-$window->show_all();
-Gtk::main();
-?>
-]]>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtktextbuffer/constructor.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
</programlisting>
</example>
</para>
@@ -94,70 +69,19 @@
<example>
<title>Instantiating a new buffer directly.</title>
<programlisting role="php">
-<![CDATA[
-<?php
-// Make sure the PHP-GTK 2 extension is loaded.
-if (!extension_loaded('php-gtk')) {
- dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);
-}
-
-// Create a new window.
-$window = new GtkWindow();
-// Properly handle closing of the window.
-$window->connect_object('destroy', array('gtk', 'main_quit'));
-
-// Create a new buffer and a new view to show the buffer.
-$textBuffer = new GtkTextBuffer();
-$textView = new GtkTextView();
-
-// Add some text to the buffer.
-$textBuffer->set_text('Hello World!', -1);
-
-// Add the buffer to the view and make sure no one edits the text.
-$textView->set_buffer($textBuffer);
-$textView->set_editable(false);
-
-// Add the view to the window, show everything, and start the main loop.
-$window->add($textView);
-$window->show_all();
-Gtk::main();
-?>
-]]>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtktextbuffer/constructor.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
</programlisting>
</example>
<example>
<title>Getting a new buffer from a view.</title>
<programlisting role="php">
-<![CDATA[
-<?php
-// Make sure the PHP-GTK 2 extension is loaded.
-if (!extension_loaded('php-gtk')) {
- dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);
-}
-
-// Create a new window.
-$window = new GtkWindow();
-// Properly handle closing of the window.
-$window->connect_object('destroy', array('gtk', 'main_quit'));
-
-// Create a new view.
-$textView = new GtkTextView();
-
-// Get the buffer from the view.
-$textBuffer = $textView->get_buffer();
-
-// Add some text to the buffer.
-$textBuffer->set_text('Hello World!', -1);
-
-// Make sure no one edits the text.
-$textView->set_editable(false);
-
-// Add the view to the window, show everything, and start the main loop.
-$window->add($textView);
-$window->show_all();
-Gtk::main();
-?>
-]]>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtktextbuffer/buffer_from_view.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
</programlisting>
</example>
</para>
http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtktextbuffer/buffer_from_view.phpw?r=1.1&p=1
Index: php-gtk-doc/examples/reference/gtk/gtktextbuffer/buffer_from_view.phpw
+++ php-gtk-doc/examples/reference/gtk/gtktextbuffer/buffer_from_view.phpw
<?php
// Create a new window.
$window = new GtkWindow();
// Properly handle closing of the window.
$window->connect_simple('destroy', array('gtk', 'main_quit'));
// Create a new view.
$textView = new GtkTextView();
// Get the buffer from the view.
$textBuffer = $textView->get_buffer();
// Add some text to the buffer.
$textBuffer->set_text('Hello World!');
// Make sure no one edits the text.
$textView->set_editable(false);
// Add the view to the window, show everything, and start the main loop.
$window->add($textView);
$window->show_all();
Gtk::main();
?>
http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtktextbuffer/constructor.phpw?r=1.1&p=1
Index: php-gtk-doc/examples/reference/gtk/gtktextbuffer/constructor.phpw
+++ php-gtk-doc/examples/reference/gtk/gtktextbuffer/constructor.phpw
<?php
// Create a new window.
$window = new GtkWindow();
// Properly handle closing of the window.
$window->connect_simple('destroy', array('gtk', 'main_quit'));
// Create a new buffer and a new view to show the buffer.
$textBuffer = new GtkTextBuffer();
$textView = new GtkTextView();
// Add some text to the buffer.
$textBuffer->set_text('Hello World!');
// Add the buffer to the view and make sure no one edits the text.
$textView->set_buffer($textBuffer);
$textView->set_editable(false);
// Add the view to the window, show everything, and start the main loop.
$window->add($textView);
$window->show_all();
Gtk::main();
?>