<?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: Dear lazyweb</title>
	<atom:link href="http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/</link>
	<description>Just another GNOME Blogs weblog</description>
	<lastBuildDate>Tue, 26 May 2009 08:45:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: fargiolas</title>
		<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/comment-page-1/#comment-103</link>
		<dc:creator>fargiolas</dc:creator>
		<pubDate>Tue, 26 May 2009 08:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/fargiolas/?p=17#comment-103</guid>
		<description>set_size_request sets a minimum size for the drawing area.
gtk_widget_size_request gets the toplevel size computed summing all minimum sizes of its children widgets. Then set_default_size sets the initial size of the toplevel window to the one it would have with the current size constraints and set_size_request (area, -1, -1) removes those size limits. This way you get an initial drawing area of the wanted size but no scaling down restriction.</description>
		<content:encoded><![CDATA[<p>set_size_request sets a minimum size for the drawing area.<br />
gtk_widget_size_request gets the toplevel size computed summing all minimum sizes of its children widgets. Then set_default_size sets the initial size of the toplevel window to the one it would have with the current size constraints and set_size_request (area, -1, -1) removes those size limits. This way you get an initial drawing area of the wanted size but no scaling down restriction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/comment-page-1/#comment-102</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Tue, 26 May 2009 07:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/fargiolas/?p=17#comment-102</guid>
		<description>Would somebody care to explain in more detail how the solution from Owen works?</description>
		<content:encoded><![CDATA[<p>Would somebody care to explain in more detail how the solution from Owen works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fargiolas</title>
		<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/comment-page-1/#comment-101</link>
		<dc:creator>fargiolas</dc:creator>
		<pubDate>Tue, 26 May 2009 07:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/fargiolas/?p=17#comment-101</guid>
		<description>@Tristan: sure that&#039;s what I do now, but there was no way (that I knew of) to compute the right default size of the toplevel to get the drawing area of the size I wanted.

@Owen: oh that&#039;s handy! it works like a charm, thank you :)!</description>
		<content:encoded><![CDATA[<p>@<a href="http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/#comment-100">Tristan</a>: sure that&#8217;s what I do now, but there was no way (that I knew of) to compute the right default size of the toplevel to get the drawing area of the size I wanted.</p>
<p>@Owen: oh that&#8217;s handy! it works like a charm, thank you <img src='http://blogs.gnome.org/fargiolas/wp-content/mu-plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tristan</title>
		<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/comment-page-1/#comment-100</link>
		<dc:creator>Tristan</dc:creator>
		<pubDate>Tue, 26 May 2009 00:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/fargiolas/?p=17#comment-100</guid>
		<description>Add your drawing area to a box or table, and
setup your packing properties (expand/fill = TRUE).

Then your drawing area will always fill the allocated
space of the parent, at the toplevel window you can
specify a default size.</description>
		<content:encoded><![CDATA[<p>Add your drawing area to a box or table, and<br />
setup your packing properties (expand/fill = TRUE).</p>
<p>Then your drawing area will always fill the allocated<br />
space of the parent, at the toplevel window you can<br />
specify a default size.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen Taylor</title>
		<link>http://blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/comment-page-1/#comment-99</link>
		<dc:creator>Owen Taylor</dc:creator>
		<pubDate>Mon, 25 May 2009 22:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/fargiolas/?p=17#comment-99</guid>
		<description>One trick that can be handy:

 - Set the size request (minimum size) to the desired size
 - Call gtk_widget_size_request() on the toplevel to find out the minimum size for the toplevel with that size widget
 - Set that as the default size of the toplevel (gtk_window_set_default_size())
 - Set the size request of the widget back to -1, -1</description>
		<content:encoded><![CDATA[<p>One trick that can be handy:</p>
<p> &#8211; Set the size request (minimum size) to the desired size<br />
 &#8211; Call gtk_widget_size_request() on the toplevel to find out the minimum size for the toplevel with that size widget<br />
 &#8211; Set that as the default size of the toplevel (gtk_window_set_default_size())<br />
 &#8211; Set the size request of the widget back to -1, -1</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/fargiolas/2009/05/25/dear-lazyweb/feed/ ) in 1.31124 seconds, on Feb 12th, 2012 at 12:40 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 12th, 2012 at 1:40 am UTC -->
