Re: [PHP-GTK-DEV] more docs corrections
[email protected] (Mark Skilbeck) Tue, 11 Jan 2011 12:48:49 +0000
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
Hi, affiss.
Thanks for the patch! I made a slight change ("See" -> "see").
Mark.
On Tue, Jan 11, 2011 at 03:19:48AM +0300, AFFISS wrote:
> Hello,
>
> this is the second patch today , please see the attachment !
>
> basically some more gtk::* to gobject::* edits and changing the svn command
> for the php-gtk-doc to something that actually works ;)
>
> check and commit
>
> regards
>
> affiss
> Index: manual/en/tutorials/doccing.xml
> ===================================================================
> --- manual/en/tutorials/doccing.xml (revision 307352)
> +++ manual/en/tutorials/doccing.xml (working copy)
> @@ -106,7 +106,7 @@
> <para>
> To get a copy of the docs using the <literal>svn</literal> command line
> tool, type:
> - <command>cvs -d :pserver:[email protected]:/repository co -P php-gtk-doc</command>
> + <command>svn checkout http://svn.php.net/repository/gtk/php-gtk-doc/trunk php-gtk-doc</command>
> </para>
> <para>
> If you already have a copy, you can update it via:
> Index: manual/en/tutorials/treeview.xml
> ===================================================================
> --- manual/en/tutorials/treeview.xml (revision 307352)
> +++ manual/en/tutorials/treeview.xml (working copy)
> @@ -99,8 +99,7 @@
> <para>
> Here we create a <classname>GtkTreeStore</classname> with two columns. The first
> column contains a PHP variable (of any type), the second a
> - string. There are several different types available, see the
> - <link linkend="gtkenum">GTK Enums</link>.
> + string. There are several different types available, See <link linkend="gobject.enum.gtype">GType</link>.
> We will be using the first column to hold an array
> containing all the information about a folder and the second
> column to display its name.
> Index: examples/reference/gtk/gtkliststore/swap.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/swap.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/swap.php (working copy)
> @@ -1,5 +1,5 @@
> <?php
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> //insert the rows at different positions
> $tokio = $store->insert(0, array('Tokio', 34100000));
> @@ -13,4 +13,4 @@
> echo $store->get_value($iter, 0) . "\r\n";
> }
> $store->foreach('echoRow');
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtkliststore/set.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/set.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/set.php (working copy)
> @@ -1,6 +1,6 @@
> <?php
> //Create new list store with string and number columns
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> //at first, get an iterator for a new row
> $iterator = $store->append();
> @@ -17,4 +17,4 @@
>
> //Even faster: don't even create an iterator variable
> $store->set($store->append(), 0, 'Seoul', 1, 22250000);
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtkliststore/insert.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/insert.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/insert.php (working copy)
> @@ -1,6 +1,6 @@
> <?php
> //Create new store with two columns
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> //insert the rows at different positions
> $store->insert(1, array('Tokio', 34100000));
> @@ -9,4 +9,4 @@
> //use the iterator to set the data after insertion
> $iter = $store->insert(1);
> $store->set($iter, 0, 'Seoul', 1, 22250000);
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtkliststore/constructor.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/constructor.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/constructor.php (working copy)
> @@ -6,7 +6,7 @@
> The "name" is of type "string", and the number
> of inhabitants is of type long (big integer).
> */
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> /*
> * Using the "set" method
> @@ -46,4 +46,4 @@
> echo $city . ' has ' . $number . " inhabitants.\r\n";
> }
> $store->foreach('echoRow');
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtkliststore/append.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/append.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/append.php (working copy)
> @@ -1,9 +1,9 @@
> <?php
> //Create new store with two columns
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> //append one row
> $store->append(array('Tokio', 34100000));
> //append another row
> $store->append(array('Mexico city', 22650000));
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtkliststore/move_before.php
> ===================================================================
> --- examples/reference/gtk/gtkliststore/move_before.php (revision 307352)
> +++ examples/reference/gtk/gtkliststore/move_before.php (working copy)
> @@ -1,5 +1,5 @@
> <?php
> -$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> $tokio = $store->insert(0, array('Tokio', 34100000));
> $mexico = $store->insert(1, array('Mexico city', 22650000));
> @@ -13,4 +13,4 @@
> echo $store->get_value($iter, 0) . "\r\n";
> }
> $store->foreach('echoRow');
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtktreeview/constructor.phpw
> ===================================================================
> --- examples/reference/gtk/gtktreeview/constructor.phpw (revision 307352)
> +++ examples/reference/gtk/gtktreeview/constructor.phpw (working copy)
> @@ -1,6 +1,6 @@
> <?php
> //the model
> -$store = new GtkListStore(Gtk::TYPE_BOOLEAN, Gtk::TYPE_STRING, Gtk::TYPE_LONG);
> +$store = new GtkListStore(Gobject::TYPE_BOOLEAN, Gobject::TYPE_STRING, Gobject::TYPE_LONG);
>
> //add some data to the data store
> $store->append(array(true , 'PHP' , 1994));
> @@ -58,4 +58,4 @@
> $wnd->set_default_size(250, 200);
> $wnd->show_all();
> Gtk::main();
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtktreeview/selection.phpw
> ===================================================================
> --- examples/reference/gtk/gtktreeview/selection.phpw (revision 307352)
> +++ examples/reference/gtk/gtktreeview/selection.phpw (working copy)
> @@ -1,6 +1,6 @@
> <?php
> //create a model
> -$model = new GtkListStore(Gtk::TYPE_STRING);
> +$model = new GtkListStore(Gobject::TYPE_STRING);
> //create the view to display the model data
> $view = new GtkTreeView($model);
> //now, get the selection object of that view
> @@ -38,4 +38,4 @@
> $wnd->add($view);
> $wnd->show_all();
> Gtk::main();
> -?>
> \ No newline at end of file
> +?>
> Index: examples/reference/gtk/gtktreeview/editable.phpw
> ===================================================================
> --- examples/reference/gtk/gtktreeview/editable.phpw (revision 307352)
> +++ examples/reference/gtk/gtktreeview/editable.phpw (working copy)
> @@ -17,14 +17,14 @@
> //Data are stored in there (the model)
> $store = new GtkListStore(
> GdkPixbuf::gtype, //icon
> - Gtk::TYPE_STRING, //title
> - Gtk::TYPE_STRING, //category
> - Gtk::TYPE_BOOLEAN,//works?
> - Gtk::TYPE_LONG //development progress (percent)
> + Gobject::TYPE_STRING, //title
> + Gobject::TYPE_STRING, //category
> + Gobject::TYPE_BOOLEAN,//works?
> + Gobject::TYPE_LONG //development progress (percent)
> );
>
> //List with allowed categories
> -$categories = new GtkListStore(Gtk::TYPE_STRING);
> +$categories = new GtkListStore(Gobject::TYPE_STRING);
> $categories->append(array('Editors'));
> $categories->append(array('Games'));
> $categories->append(array('Setup'));
> @@ -163,4 +163,4 @@
> $wnd->connect_simple('destroy', array('Gtk', 'main_quit'));
> $wnd->show_all();
> Gtk::main();
> -?>
> \ No newline at end of file
> +?>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php