cvs: php-gtk-doc /en/reference/gtk gtklist.xml gtkmenu.xml gtkwindow.xml

From: Date: Thu, 22 Jul 2004 19:38:38 +0000
Subject: cvs: php-gtk-doc /en/reference/gtk gtklist.xml gtkmenu.xml gtkwindow.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-909@lists.php.net to get a copy of this message
cweiske Thu Jul 22 15:38:38 2004 EDT Modified files: /php-gtk-doc/en/reference/gtk gtklist.xml gtkmenu.xml gtkwindow.xml Log: Some corrections http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtklist.xml?r1=1.9&r2=1.10&ty=u Index: php-gtk-doc/en/reference/gtk/gtklist.xml diff -u php-gtk-doc/en/reference/gtk/gtklist.xml:1.9 php-gtk-doc/en/reference/gtk/gtklist.xml:1.10 --- php-gtk-doc/en/reference/gtk/gtklist.xml:1.9 Sun Aug 3 13:09:22 2003 +++ php-gtk-doc/en/reference/gtk/gtklist.xml Thu Jul 22 15:38:37 2004 @@ -28,6 +28,10 @@ method's parameters, should you need to connect to them. </simpara> <simpara> + If you need a list with multiple columns and/or titles with sorting + support, <classname>GtkCList</classname> is the right class for you. + </simpara> + <simpara> See also: <classname>GtkCList</classname>, <classname>GtkCombo</classname>, <classname>GtkListItem</classname>. @@ -58,8 +62,9 @@ <programlisting role="php"> <![CDATA[ <?php - -dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); +if( !extension_loaded('gtk')) { + dl( 'php_gtk.' . PHP_SHLIB_SUFFIX); +} function echo_it($list, $listitem) { /* collect the text from the selected list item's label */ @@ -109,7 +114,6 @@ $window->show_all(); gtk::main(); - ?> ]]> </programlisting> @@ -124,7 +128,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>append_items</function></funcdef> - <paramdef>array</paramdef> + <paramdef>Array <parameter>listItems</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -164,7 +168,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>select_item</function></funcdef> - <paramdef>int <parameter>item</parameter></paramdef> + <paramdef>int <parameter>row</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -190,7 +194,7 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>unselect_item</function></funcdef> - <paramdef>int <parameter>item</parameter></paramdef> + <paramdef>int <parameter>row</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -286,8 +290,8 @@ <desc> <simpara> <function class="GtkList">child_position</function> returns the - .list position currently holding the widget that was passed as the - argument. The widget needs to be passed by reference, i.e. using the + list position currently holding the widget that was passed as the + argument. The widget needs to be passed by reference, i.e. using the form <literal>$widget</literal>. </simpara> </desc> @@ -679,6 +683,11 @@ is emitted whenever there is a change in the list's <propname class="GtkList">selection</propname> property, regardless of whether that change empties the array. + </simpara> + <simpara> + As there is no way to track back which particular item has been selected + or unselected, you should use the <signalname class="GtkList">select-child</signalname> + if you need that piece of information. </simpara> </desc> </signal> http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkmenu.xml?r1=1.13&r2=1.14&ty=u Index: php-gtk-doc/en/reference/gtk/gtkmenu.xml diff -u php-gtk-doc/en/reference/gtk/gtkmenu.xml:1.13 php-gtk-doc/en/reference/gtk/gtkmenu.xml:1.14 --- php-gtk-doc/en/reference/gtk/gtkmenu.xml:1.13 Sun Aug 3 13:09:22 2003 +++ php-gtk-doc/en/reference/gtk/gtkmenu.xml Thu Jul 22 15:38:37 2004 @@ -71,12 +71,14 @@ <programlisting role="php"> <![CDATA[ <?php - -dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); +if( !extension_loaded('gtk')) { + dl( 'php_gtk.' . PHP_SHLIB_SUFFIX); +} function show_popup($event, $menu) { -if($event->button == 3) { - $menu->popup(null, null, null, $event->button, $event->time); + if($event->button == 3) { + $menu->popup(null, null, null, $event->button, $event->time); + } } $window = &new GtkWindow(); @@ -105,6 +107,9 @@ $exit->connect_object('activate', array('gtk', 'main_quit')); $menu->append($exit); $menu->show_all(); + +$label = &new GtkLabel( 'Right-click here to see the menu'); +$window->add( $label); $window->add_events(GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK); $window->connect_object('button-press-event', 'show_popup', $menu); http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkwindow.xml?r1=1.12&r2=1.13&ty=u Index: php-gtk-doc/en/reference/gtk/gtkwindow.xml diff -u php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.12 php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.13 --- php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.12 Sun Jul 18 16:32:33 2004 +++ php-gtk-doc/en/reference/gtk/gtkwindow.xml Thu Jul 22 15:38:37 2004 @@ -63,6 +63,9 @@ ]]> </programlisting> </para> + <simpara> + If you need to set the window cursor, you should have look at <classname>GdkWindow</classname>. + </simpara> </desc> </classmeta>

« previous php.gtk.doc (#909) next »