<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jan Arne Petersen&#039;s Blog &#187; GNOME</title>
	<atom:link href="http://blog.jpetersen.org/category/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jpetersen.org</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 14:28:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A Default GtkWindow with Menu and Toolbars</title>
		<link>http://blog.jpetersen.org/2008/05/14/a-default-gtkwindow-with-menu-and-toolbars/</link>
		<comments>http://blog.jpetersen.org/2008/05/14/a-default-gtkwindow-with-menu-and-toolbars/#comments</comments>
		<pubDate>Tue, 13 May 2008 22:57:15 +0000</pubDate>
		<dc:creator>jpetersen</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GTK+]]></category>

		<guid isPermaLink="false">http://blog.jpetersen.org/?p=11</guid>
		<description><![CDATA[I don&#8217;t like such applications on my N810: The application could be ported to use a HildonWindow if compiled for the maemo platform. But it would be much easier if there were an abstract GTK+ widget which would allow it &#8230; <a href="http://blog.jpetersen.org/2008/05/14/a-default-gtkwindow-with-menu-and-toolbars/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like such applications on my N810:</p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/05/labyrinth-maemo-screenshot-111.png"><img class="alignnone size-medium wp-image-10" title="Labyrinth on Maemo" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/05/labyrinth-maemo-screenshot-11-300x180.png" alt="" width="300" height="180" /></a></p>
<p>The application could be ported to use a <a href="http://maemo.org/api_refs/4.0/hildon/HildonWindow.html">HildonWindow</a> if compiled for the maemo platform. But it would be much easier if there were an abstract GTK+ widget which would allow it to add a menu and toolbars to a window in a (platform specific) default layout.</p>
<p>I imagine something like:</p>
<p><a href="http://www.jpetersen.org/blog/wp-content/uploads/2008/05/abstract-factorydiagram_1210680273477_211.png"><img class="alignnone size-medium wp-image-12" title="MainWindow Class Diagram" src="http://www.jpetersen.org/blog/wp-content/uploads/2008/05/abstract-factorydiagram_1210680273477_21-281x300.png" alt="" width="281" height="300" /></a></p>
<p>With this proposal, it would also be possible to implement a <a href="http://bugzilla.gnome.org/show_bug.cgi?id=353076">Mac-style MenuBar</a> without a GtkMenuBar hack.</p>
<p>See <a href="http://bugzilla.gnome.org/show_bug.cgi?id=533003">Bug 533003</a>.</p>
<p>p.s. I don&#8217;t like the name GtkMainWindow. Maybe something like GtkDefaultWindow or GtkSimpleWindow would be better.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jpetersen.org/2008/05/14/a-default-gtkwindow-with-menu-and-toolbars/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another Pseudo Interface in GTK+</title>
		<link>http://blog.jpetersen.org/2008/05/13/another-pseudo-interface-in-gtk/</link>
		<comments>http://blog.jpetersen.org/2008/05/13/another-pseudo-interface-in-gtk/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:46:03 +0000</pubDate>
		<dc:creator>jpetersen</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GTK+]]></category>

		<guid isPermaLink="false">http://blog.jpetersen.org/?p=9</guid>
		<description><![CDATA[Beside the hidden scrollable interface there is another interface hidden in GtkWidgetClass::activate_signal. See Bug 532795 for an implementation of an explicit Activatable interface to replace this class variable.]]></description>
			<content:encoded><![CDATA[<p>Beside the hidden <a href="http://blog.jpetersen.org/2008/05/07/scrollable-widgets-in-gtk/">scrollable</a> interface there is another interface hidden in <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#GtkWidgetClass">GtkWidgetClass::activate_signal</a>.</p>
<p>See <a href="http://bugzilla.gnome.org/show_bug.cgi?id=532795">Bug 532795</a> for an implementation of an explicit Activatable interface to replace this class variable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jpetersen.org/2008/05/13/another-pseudo-interface-in-gtk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arrange icons in the notification-area</title>
		<link>http://blog.jpetersen.org/2008/05/07/arrange-icons-in-the-notification-area/</link>
		<comments>http://blog.jpetersen.org/2008/05/07/arrange-icons-in-the-notification-area/#comments</comments>
		<pubDate>Wed, 07 May 2008 18:51:28 +0000</pubDate>
		<dc:creator>jpetersen</dc:creator>
				<category><![CDATA[GNOME]]></category>

		<guid isPermaLink="false">http://blog.jpetersen.org/?p=6</guid>
		<description><![CDATA[I don&#8217;t like to search my rhythmbox icon in the notification area. There is a patch attached to bug 531282 which provides a solution (GConf-Key: /apps/panel/applets/{$notification-area-applet}/prefs/order).]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like to search my rhythmbox icon in the notification area. There is a patch attached to <a title="Allow to arrange icons in the notification area" href="http://bugzilla.gnome.org/show_bug.cgi?id=531282">bug 531282</a> which provides a solution (GConf-Key: /apps/panel/applets/{$notification-area-applet}/prefs/order).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jpetersen.org/2008/05/07/arrange-icons-in-the-notification-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scrollable widgets in GTK+</title>
		<link>http://blog.jpetersen.org/2008/05/07/scrollable-widgets-in-gtk/</link>
		<comments>http://blog.jpetersen.org/2008/05/07/scrollable-widgets-in-gtk/#comments</comments>
		<pubDate>Wed, 07 May 2008 14:44:29 +0000</pubDate>
		<dc:creator>jpetersen</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GTK+]]></category>

		<guid isPermaLink="false">http://blog.jpetersen.org/?p=5</guid>
		<description><![CDATA[In GTK+ 2 there are scrollable widgets like GtkTreeView, GtkTextView or GtkViewport but no GtkScrollable interface. Instead a scrollable widget is defined by a &#8220;set_scroll_adjustments&#8221; signal, which id is written to the GtkWidgetClass::set_scroll_adjustments_signal class variable. If a scrollable widget is &#8230; <a href="http://blog.jpetersen.org/2008/05/07/scrollable-widgets-in-gtk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In GTK+ 2 there are scrollable widgets like <a href="http://library.gnome.org/devel/gtk/unstable/GtkTreeView.html">GtkTreeView</a>, <a href="http://library.gnome.org/devel/gtk/unstable/GtkTextView.html">GtkTextView</a> or <a href="http://library.gnome.org/devel/gtk/unstable/GtkViewport.html">GtkViewport</a> but no GtkScrollable interface. Instead a scrollable widget is defined by a &#8220;set_scroll_adjustments&#8221; signal, which id is written to the <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#GtkWidgetClass">GtkWidgetClass::set_scroll_adjustments_signal</a> class variable.</p>
<p>If a scrollable widget is added to a <a href="http://library.gnome.org/devel/gtk/unstable/GtkScrolledWindow.html">GtkScrolledWindow</a> the set_scroll_adjustments_signal is called and the hadjustment and vadjustment from the GtkScrolledWindow are passed as parameters to the scrollable widget. The scrollable widget than replaces its own adjustments with the ones it got from the GtkScrolledWindow. If the scrollable widget is removed from the GtkScrolledWindow it recreates its own adjustments.</p>
<p>This model seems to be simple, but all scrollable widgets need (and set) specific values for <a href="http://library.gnome.org/devel/gtk/unstable/GtkAdjustment.html">GtkAdjustment</a>::lower, ::upper, ::page_increment and ::page_size and the adjustments are required by the size-allocate function. So the adjustments should actually be owned by the scrollable widget and not by the GtkScrolledWindow.</p>
<p>For GTK+ 3 I propose a simple GtkScrollable interface with a readable hadjustment and vadjustment property. If a widget which implements GtkScrollable is added to a GtkScrolledWindow the GtkScrolledWindow should use its adjustments.</p>
<p>See <a title="Redo scrollable widgets and adjustments for gtk+ 3" href="http://bugzilla.gnome.org/show_bug.cgi?id=468689">Bug 468689</a> and the attached patch.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jpetersen.org/2008/05/07/scrollable-widgets-in-gtk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

