<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rounded boxes in gtk</title>
	<atom:link href="http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk</link>
	<description>Learning is cool!</description>
	<lastBuildDate>Wed, 10 Mar 2010 07:07:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ryan Paul</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118756</link>
		<dc:creator>Ryan Paul</dc:creator>
		<pubDate>Wed, 11 Nov 2009 20:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118756</guid>
		<description>In an earlier version of Gwibber, before I started using WebKit, I actually did the round boxes manually with Cairo. It was a bit of a pain and it was hard to get it to look right. You can see the code here: http://is.gd/4SNy2

Qt&#039;s support for CSS theming makes it trivially easy to do this with native widgets. It&#039;s unfortunate that GTK+ is so far behind in this area.</description>
		<content:encoded><![CDATA[<p>In an earlier version of Gwibber, before I started using WebKit, I actually did the round boxes manually with Cairo. It was a bit of a pain and it was hard to get it to look right. You can see the code here: <a href="http://is.gd/4SNy2" rel="nofollow">http://is.gd/4SNy2</a></p>
<p>Qt&#8217;s support for CSS theming makes it trivially easy to do this with native widgets. It&#8217;s unfortunate that GTK+ is so far behind in this area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca Bruno</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118716</link>
		<dc:creator>Luca Bruno</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118716</guid>
		<description>Use Cairo or Clutter.</description>
		<content:encoded><![CDATA[<p>Use Cairo or Clutter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Smith</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118705</link>
		<dc:creator>Jason Smith</dc:creator>
		<pubDate>Tue, 10 Nov 2009 15:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118705</guid>
		<description>Yeah I did not mean to imply the code I pasted would at all follow the gtk theme, however the example screenshot he posted did not do that either so I went for the simplest possible approach.

You can pull all the gtk theme colors using the style property available to your widget, which will give you all the colors you need. gtk_paint_box works too, but it wont give you consistent results, plus learning cairo is fun!</description>
		<content:encoded><![CDATA[<p>Yeah I did not mean to imply the code I pasted would at all follow the gtk theme, however the example screenshot he posted did not do that either so I went for the simplest possible approach.</p>
<p>You can pull all the gtk theme colors using the style property available to your widget, which will give you all the colors you need. gtk_paint_box works too, but it wont give you consistent results, plus learning cairo is fun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hylke</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118701</link>
		<dc:creator>Hylke</dc:creator>
		<pubDate>Tue, 10 Nov 2009 14:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118701</guid>
		<description>Actually, the corners of the two rectangles (it looks like it&#039;s being build as a rectangle in a rectangle instead of a rectangle with a border) are perfectly round, but the inner rectangle&#039;s radius is too small it seems, so it looks really weird. :)</description>
		<content:encoded><![CDATA[<p>Actually, the corners of the two rectangles (it looks like it&#8217;s being build as a rectangle in a rectangle instead of a rectangle with a border) are perfectly round, but the inner rectangle&#8217;s radius is too small it seems, so it looks really weird. <img src='http://www.bani.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rectangelo</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118697</link>
		<dc:creator>rectangelo</dc:creator>
		<pubDate>Tue, 10 Nov 2009 13:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118697</guid>
		<description>@Hylke: Out of curiosity... I have read about rounded corners on http://jimmac.musichall.cz/log/?p=435 but I still feel stupid. Is there a blog post that explains the rounded corners issue for a non-designer? What are correct rounded corners? As a developer I&#039;m always willing to learn.</description>
		<content:encoded><![CDATA[<p>@Hylke: Out of curiosity&#8230; I have read about rounded corners on <a href="http://jimmac.musichall.cz/log/?p=435" rel="nofollow">http://jimmac.musichall.cz/log/?p=435</a> but I still feel stupid. Is there a blog post that explains the rounded corners issue for a non-designer? What are correct rounded corners? As a developer I&#8217;m always willing to learn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hylke</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118696</link>
		<dc:creator>Hylke</dc:creator>
		<pubDate>Tue, 10 Nov 2009 12:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118696</guid>
		<description>Sorry, but those aren&#039;t rounded corners :)</description>
		<content:encoded><![CDATA[<p>Sorry, but those aren&#8217;t rounded corners <img src='http://www.bani.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118695</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 10 Nov 2009 10:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118695</guid>
		<description>Just remember that some of us like boring looking applications. One thing I like about gtk+ apps is that they do all look really similar. I don&#039;t know if it has any actual benefit (perhaps it helps you concentrate on the bits that are actually different? perhaps it lets one person with a good sense of taste make the whole thing pretty?), but looking like every other application is not the end of the world :)</description>
		<content:encoded><![CDATA[<p>Just remember that some of us like boring looking applications. One thing I like about gtk+ apps is that they do all look really similar. I don&#8217;t know if it has any actual benefit (perhaps it helps you concentrate on the bits that are actually different? perhaps it lets one person with a good sense of taste make the whole thing pretty?), but looking like every other application is not the end of the world <img src='http://www.bani.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Lord</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118693</link>
		<dc:creator>Chris Lord</dc:creator>
		<pubDate>Tue, 10 Nov 2009 09:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118693</guid>
		<description>Another +1 for Cairo, although if you want to respect the theme, you can use gtk_paint_box (with detail parameter set to &quot;button&quot; if you want it to look like a button).

It&#039;s not that hard to create native-looking widgets: http://chrislord.net/blog/Software/Dates/jana-gtk-themeing-demo.enlighten</description>
		<content:encoded><![CDATA[<p>Another +1 for Cairo, although if you want to respect the theme, you can use gtk_paint_box (with detail parameter set to &#8220;button&#8221; if you want it to look like a button).</p>
<p>It&#8217;s not that hard to create native-looking widgets: <a href="http://chrislord.net/blog/Software/Dates/jana-gtk-themeing-demo.enlighten" rel="nofollow">http://chrislord.net/blog/Software/Dates/jana-gtk-themeing-demo.enlighten</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118689</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 10 Nov 2009 06:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118689</guid>
		<description>The user have chosen his gtk theme, respect that... it is not up to you to decide whether should have round or square widgets...

Look at Banshee, they have hard coded some of the design, nooot nice.

All that being said, custom RC can be used or Cairo can be used.

If using Cairo, you need more than ten lines. you need to draw with with the same settings(at least colors) as the current gtk theme and you also need to connect to the gtk theme changed signal, and do a redraw if that happens..</description>
		<content:encoded><![CDATA[<p>The user have chosen his gtk theme, respect that&#8230; it is not up to you to decide whether should have round or square widgets&#8230;</p>
<p>Look at Banshee, they have hard coded some of the design, nooot nice.</p>
<p>All that being said, custom RC can be used or Cairo can be used.</p>
<p>If using Cairo, you need more than ten lines. you need to draw with with the same settings(at least colors) as the current gtk theme and you also need to connect to the gtk theme changed signal, and do a redraw if that happens..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zedtux</title>
		<link>http://www.bani.com.br/lang/en/2009/11/rounded-boxes-in-gtk/comment-page-1/#comment-118688</link>
		<dc:creator>zedtux</dc:creator>
		<pubDate>Tue, 10 Nov 2009 06:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bani.com.br/?p=340#comment-118688</guid>
		<description>That&#039;s clear: Cairo.

Don&#039;t know if you&#039;re using C or C++.
If it&#039;s in C++, use GTKmm. (http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-cairo-drawing-arcs.html.en)</description>
		<content:encoded><![CDATA[<p>That&#8217;s clear: Cairo.</p>
<p>Don&#8217;t know if you&#8217;re using C or C++.<br />
If it&#8217;s in C++, use GTKmm. (<a href="http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-cairo-drawing-arcs.html.en" rel="nofollow">http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-cairo-drawing-arcs.html.en</a>)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
