<?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>Gareth Jones &#187; changes</title>
	<atom:link href="http://blog.garethj.com/tag/changes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.garethj.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 17:37:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Indicator applet API changes in Ubuntu 9.10</title>
		<link>http://blog.garethj.com/2009/10/indicator-applet-api-changes-in-ubuntu-9-10/</link>
		<comments>http://blog.garethj.com/2009/10/indicator-applet-api-changes-in-ubuntu-9-10/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 13:20:25 +0000</pubDate>
		<dc:creator>gareth</dc:creator>
				<category><![CDATA[techy solutions]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[applet]]></category>
		<category><![CDATA[attention]]></category>
		<category><![CDATA[changes]]></category>
		<category><![CDATA[draw-attention]]></category>
		<category><![CDATA[indicator]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[libindicate]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python-indicate]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.garethj.com/?p=139</guid>
		<description><![CDATA[The API for the indicator applet has changed in Karmic and a little internal IBM Python application that I&#8217;ve written stopped working. Only a couple of minor changes were needed but trying to track down exactly what these were was &#8230; <a href="http://blog.garethj.com/2009/10/indicator-applet-api-changes-in-ubuntu-9-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The API for the <a href="https://wiki.ubuntu.com/MessagingMenu">indicator applet</a> has <a href="https://wiki.ubuntu.com/MessagingMenu/UDSKarmic">changed in Karmic</a> and a little internal IBM Python application that I&#8217;ve written stopped working. Only a couple of minor changes were needed but trying to track down exactly what these were was not as easy a task as I&#8217;d have liked.</p>
<p><strong>Creating the indicator</strong><br />
The class used to represent an indicator appears to have changed from <code>IndicatorMessage</code> to <code>Indicator</code> so I threw in the following code to try the new one and fallback to the old one:<br />
<code><br />
try:<br />
&nbsp;&nbsp;# Ubuntu 9.10 and above<br />
&nbsp;&nbsp;indicator = indicate.Indicator()<br />
except:<br />
&nbsp;&nbsp;# Ubuntu 9.04<br />
&nbsp;&nbsp;indicator = indicate.IndicatorMessage()<br />
</code><br />
<strong>Drawing attention</strong><br />
Previously, indicators automatically made the indicator applet draw your attention with a green dot. In Karmic the green dot appears to have been replaced with a change of the envelope colour to black but it is no longer automatic. To make this work you need to set the <code>draw-attention</code> property:</p>
<p><code>indicator.set_property('draw-attention', 'true');</code></p>
<p>Note that they&#8217;ve also added a <code>count</code> property to display how many notifications are from the same source.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.garethj.com/2009/10/indicator-applet-api-changes-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
