cvs: php-gtk-doc /examples/reference/gtk/gtkseparatormenuitem constructor.phpw /images/reference/gtk gtkseparatormenuitem.png
/manual/en/reference/gtk gtkseparatormenuitem.xml
| From: | Christian Weiske | Date: | Sun, 06 Aug 2006 06:46:42 +0000 |
| Subject: | cvs: php-gtk-doc /examples/reference/gtk/gtkseparatormenuitem constructor.phpw /images/reference/gtk gtkseparatormenuitem.png /manual/en/reference/gtk gtkseparatormenuitem.xml |
||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-2747@lists.php.net to get a copy of this message | ||
cweiske Sun Aug 6 06:46:42 2006 UTC
Added files:
/php-gtk-doc/examples/reference/gtk/gtkseparatormenuitem
constructor.phpw
/php-gtk-doc/images/reference/gtk gtkseparatormenuitem.png
Modified files:
/php-gtk-doc/manual/en/reference/gtk gtkseparatormenuitem.xml
Log:
GtkSeparatorMenuItem docs
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml?r1=1.3&r2=1.4&diff_format=u
Index: php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml
diff -u php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml:1.3
php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml:1.4
--- php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml:1.3 Tue Apr 4 20:57:27 2006
+++ php-gtk-doc/manual/en/reference/gtk/gtkseparatormenuitem.xml Sun Aug 6 06:46:42 2006
@@ -3,16 +3,18 @@
<classmeta>
<classtitle>GtkSeparatorMenuItem</classtitle>
<classparent>GtkMenuItem</classparent>
+ <classimage fileref="&directory.images;/reference/gtk/gtkseparatormenuitem.png"
border="1"/>
<shortdesc>
A menu item for separating one group of items from another.
</shortdesc>
<desc>
-
+ <para>
+ A menu item for separating one group of menu items from another.
+ </para>
</desc>
</classmeta>
<constructors>
-
<constructor id="gtk.gtkseparatormenuitem.constructor">
<funcsynopsis>
<funcprototype>
@@ -21,13 +23,25 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Creates a new separator.
</shortdesc>
<desc>
-
+ <para>
+ Separator menu items are used just as any other
+ <classname>GtkMenuItem</classname>. The following example
+ shows how to use them.
+ </para>
+ <example>
+ <title>Separating menu items with GtkSeparatorMenuItem</title>
+ <programlisting role="php">
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+
href="&directory.examples;/reference/gtk/gtkseparatormenuitem/constructor.phpw"
parse="text">
+ <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ </xi:include>
+ </programlisting>
+ </example>
</desc>
</constructor>
-
</constructors>
-</classentry>
+</classentry>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-gtk-doc/examples/reference/gtk/gtkseparatormenuitem/constructor.phpw?view=markup&rev=1.1
Index: php-gtk-doc/examples/reference/gtk/gtkseparatormenuitem/constructor.phpw
+++ php-gtk-doc/examples/reference/gtk/gtkseparatormenuitem/constructor.phpw
<?php
//Example: using GtkSeparatorMenuItems to
// separate menu items
//Create a menu bar
$mbar = new GtkMenuBar();
//Add a menu item
$file = new GtkMenuItem('_File');
//with a submenu
$fmenu = new GtkMenu();
$file->set_submenu($fmenu);
$mbar->add($file);
//Now, we create a "normal" file menu:
// New, Open, Save, Save As, Quit
//To make it visually appealing, we separate
// the items with GtkSeparatorMenuItems
$fmenu->add(new GtkImageMenuItem(Gtk::STOCK_NEW));
$fmenu->add(new GtkImageMenuItem(Gtk::STOCK_OPEN));
$fmenu->add(new GtkSeparatorMenuItem());
$fmenu->add(new GtkImageMenuItem(Gtk::STOCK_SAVE));
$fmenu->add(new GtkImageMenuItem(Gtk::STOCK_SAVE_AS));
$fmenu->add(new GtkSeparatorMenuItem());
$fmenu->add(new GtkImageMenuItem(Gtk::STOCK_QUIT));
//standard stuff
$wnd = new GtkWindow();
$wnd->connect_simple('destroy', array('gtk', 'main_quit'));
$wnd->add($mbar);
$wnd->show_all();
Gtk::main();
?>