<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 16:55:15 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Extending GtkMenu class for Popup menu dialog]]></title>
      <guid>http://www.phpdeveloper.org/news/7495</guid>
      <link>http://www.phpdeveloper.org/news/7495</link>
      <description><![CDATA[<p>
On the PHP-GTK Community site today, there's a <a href="http://www.php-gtk.eu/code-snippets/extending-gtkmenu-for-popup-menu">"quick hit" post</a> for extending a GtkMenu object in a PHP-GTK application to create a popup menu dialog.
</p>
<blockquote>
Here is a quick way to build a popup menu supporting event registration from a GtkWidget. Menu items are passed to the class constructor as a list of labels. This class emits activate signals with full context (x,y coordinates, button ...).
</blockquote>
<p>
There's the <a href="http://www.php-gtk.eu/code-snippets/extending-gtkmenu-for-popup-menu">list of the steps</a> that the code will follow and the two code chunks that will make it happen - the sample PHP-GTK app and the class file that handles the menu creation.
</p>]]></description>
      <pubDate>Fri, 23 Mar 2007 11:38:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Add icons to GtkMenu]]></title>
      <guid>http://www.phpdeveloper.org/news/6871</guid>
      <link>http://www.phpdeveloper.org/news/6871</link>
      <description><![CDATA[<p>
On of the next steps up from building a regular <a href="http://www.phpdeveloper.org/news/6834">menubar</a> or <a href="http://www.phpdeveloper.org/news/6827">toolbar</a> in your PHP-GTK application is the addition of icons to help liven up the menus and help users quickly find what they want. <a href="http://www.php-gtk.eu/code-snippets/add-icons-to-gtkmenu">This new tutorial</a> on the PHP-GTK Community Site aims to help with just that.
</p>
<blockquote>
When creating a soft, you'll often want to have a menu like in the majority of graphical softs. It's often clear in your mind but require more code than you want to do simple things using a plain GtkMenu. So here's a class to help you to quickly design such menus and will also allow you to display nice icon in your menus.
</blockquote>
<p>
They start with <a href="http://www.php-gtk.eu/code-snippets/add-icons-to-gtkmenu">a usage example</a> before getting into the code of the class - a <a href="http://www.php-gtk.eu/files/menuicon.png">simple menu</a> with a "file" and "help" top menus and under "file", "open" and "exit". 
</p>
<p>
The complete code for the class is included in <a href="http://www.php-gtk.eu/code-snippets/add-icons-to-gtkmenu">the post</a> so it's a simple cut and paste away from being yours.
</p>]]></description>
      <pubDate>Tue, 12 Dec 2006 08:56:00 -0600</pubDate>
    </item>
  </channel>
</rss>
