<?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>Sun, 19 May 2013 19:42:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Elizabeth Smith's Blog: Treeviews and Cell Renderer Properties - Practical PHP-GTK]]></title>
      <guid>http://www.phpdeveloper.org/news/11156</guid>
      <link>http://www.phpdeveloper.org/news/11156</link>
      <description><![CDATA[<p>
New on her blog <i>Elizabeth Smith</i> talks about <a href="http://elizabethmariesmith.com/2008/10/treeviews-and-cell-renderer-properties-practical-php-gtk/">tree views and rendering</a> in a PHP-GTK application (with sample code included).
</p>
<blockquote>
I get this question a lot - "How do I change the background color of a single cell in a treeview?" If you look around you'll see a couple of ways of doing this using display callbacks and other highly processor and memory intensive methods - but there's a much simpler way.
</blockquote>
<p>
She explains how the tree views are rendered (with the GtkTreeView component, of course) via a "cell renderer" with different variations based on the contents of the cell - each with their own properties. Her example code illustrates how to manipulate this by making the tree object and attaching other columns to it with custom background properties. A quick screencast is included to show it in action.
</p>]]></description>
      <pubDate>Tue, 07 Oct 2008 07:53:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Managing Layout in PHP-GTK 2]]></title>
      <guid>http://www.phpdeveloper.org/news/5671</guid>
      <link>http://www.phpdeveloper.org/news/5671</link>
      <description><![CDATA[<p>
On php|architect's A/R/T article repository today, there's <a href="http://hades.phparch.com/ceres/public/article/index.php/art::php_gtk::managing_layout">the next</a> in a continuing series <i>Scott Mattocks</i> is doing on PHP-GTK 2. This time, he looks at how to manage the layout of your application with the given functionality.
</p>
<blockquote>
In the <a href="http://www.phpdeveloper.org/news/5510">last article</a>, "Hello PHP-GTK", we looked at what it takes to create a simple application. At the end, we were left with a PHP-GTK implementation of "Hello World". The application was very simple. Too simple. All it did was display one line of text in a window. In this article we will expand on the previous article by adding more content to the window. Along the way we will look at how parents and children interact and what it takes to make children behave properly.
</blockquote>
<p>
He <a href="http://hades.phparch.com/ceres/public/article/index.php/art::php_gtk::managing_layout">starts by explaining</a> the parent child relationship between the base window and other children (spawned) windows, mentioning the GtkWindow and GtkObject widgets. With windows down, he moves on to "boxes", seperation areas inside the windows to help organize the content (including ways to frame them in). And, to wrap it all up, a look at GtkTable, a widget that helps you create a nicely laid out table inside of your window (simpler than several boxes). 
</p>]]></description>
      <pubDate>Fri, 23 Jun 2006 13:45:20 -0500</pubDate>
    </item>
  </channel>
</rss>
