Re: cvs: php-gtk-doc /examples/reference/gtk/gtkmenubar constructor.phpw /manual/en/reference/gtk gtkmenubar.xml

From: Date: Thu, 23 Mar 2006 01:29:37 +0000
Subject: Re: cvs: php-gtk-doc /examples/reference/gtk/gtkmenubar constructor.phpw /manual/en/reference/gtk gtkmenubar.xml
References: 1  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1943@lists.php.net to get a copy of this message
Gee thanks. ----- Original Message ----- From: "Christian Weiske" <cweiske@php.net> To: <php-gtk-doc@lists.php.net> Sent: Wednesday, March 22, 2006 11:19 PM Subject: [PHP-GTK-DOC] cvs: php-gtk-doc /examples/reference/gtk/gtkmenubar constructor.phpw /manual/en/reference/gtk gtkmenubar.xml
cweiske Wed Mar 22 21:19:25 2006 UTC Added files: /php-gtk-doc/examples/reference/gtk/gtkmenubar constructor.phpw Modified files: /php-gtk-doc/manual/en/reference/gtk gtkmenubar.xml Log: Simple GtkMenuBar example http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml?r1=1.3&r2=1.4&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml:1.3 Tue Dec 20 22:43:29 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkmenubar.xml Wed Mar 22 21:19:25 2006 @@ -8,7 +8,7 @@ </shortdesc> <desc> <para>
-    This widget forms the base to create a general menu. First, you must
+    This widget forms the base to create a general menu. First, you need to
    create a <classname>GtkMenuBar</classname> and then add
    <classname>GtkMenuItem</classname>s to it. The result will be a
    standard menu bar that may be placed appropriately in the application.
@@ -31,13 +31,22 @@ <desc>
    <para>
     Use the constructor to create a new <classname>GtkMenuBar</classname>
-     widget and then add <classname>GtkMenuItem</classname>s to it.
+     widget and then add <classname>GtkMenuItem</classname>s to it.
    </para>
    <note>
     This widget is a subclass of <classname>GtkMenuShell</classname>,
     hence all methods that can be applied to
     <classname>GtkMenuShell</classname> may be used here.
    </note>
+    <example>
+     <title>Creating a simple menu bar</title>
+     <programlisting role="php">
+      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+ href="&directory.examples;/reference/gtk/gtkmenubar/constructor.phpw" parse="text">
+       <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+      </xi:include>
+     </programlisting>
+    </example>
</desc> </constructor> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/examples/reference/gtk/gtkmenubar/constructor.phpw?view=markup&rev=1.1 Index: php-gtk-doc/examples/reference/gtk/gtkmenubar/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkmenubar/constructor.phpw <?php //Create a simple menu bar $menubar = new GtkMenuBar(); //Add File menu item with a dropdown menu $file = new GtkMenuItem('_File'); $menubar->append($file); //Quit item $quit = new GtkMenuItem('_Quit'); //This menu will popup when the File menu is activated $mnuFile = new GtkMenu(); //Add the Quit item to the File popup menu $mnuFile->append($quit); //Set the popupmenu of the File menu item $file->set_submenu($mnuFile); //another menu item $edit = new GtkMenuItem('_Edit'); $menubar->append($edit); //Add the menu bar to the window $wnd = new GtkWindow(); $wnd->add($menubar); $wnd->connect_simple('destroy', array('Gtk', 'main_quit')); $wnd->show_all(); Gtk::main(); ?> -- PHP-GTK Documentation Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com


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