<?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>Into.the.Void. &#187; Mac</title>
	<atom:link href="http://www.void.gr/kargig/blog/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.void.gr/kargig/blog</link>
	<description>Into The Void</description>
	<lastBuildDate>Sat, 07 Aug 2010 08:06:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>minor uniformity patch for smplayer</title>
		<link>http://www.void.gr/kargig/blog/2009/08/13/minor-uniformity-patch-for-smplayer/</link>
		<comments>http://www.void.gr/kargig/blog/2009/08/13/minor-uniformity-patch-for-smplayer/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 13:19:14 +0000</pubDate>
		<dc:creator>kargig</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[ebuild]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[smplayer]]></category>

		<guid isPermaLink="false">http://www.void.gr/kargig/blog/?p=701</guid>
		<description><![CDATA[One of the things that good Linux applications should have is uniformity. Just like Mac OS X does. All applications should use the same keybindings to perform the same tasks. For example, on _every_ OS X application, in order to quit it you have to press &#8220;CMD+Q&#8221;, it&#8217;s that simple and everybody follows it. Everybody. [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that good Linux applications should have is uniformity. Just like Mac OS X does. All applications should use the same keybindings to perform the same tasks. For example, on _every_ OS X application, in order to quit it you have to press &#8220;CMD+Q&#8221;, it&#8217;s that simple and everybody follows it. Everybody. On Linux though there are some applications that simply don&#8217;t care about uniformity. One of these applications is <a href="http://smplayer.sourceforge.net/">smplayer</a>.</p>
<p>While it is almost standard for Linux applications to quit using Ctrl+Q, smplayer simply doesn&#8217;t have this option. It has the option of closing the current video with Ctrl+X but it doesn&#8217;t have the simple option of quitting using a keyboard shortcut.</p>
<p>So, the next (oneliner actually) patch does simply what I described above. It makes smplayer quit using &#8220;Ctrl+Q&#8221;.</p>
<p>The screenshot that shows what the patch does:<br />
<a href="http://www.void.gr/kargig/blog/wp-content/smplayer.jpg"><img class="alignnone size-medium wp-image-704" title="smplayer" src="http://www.void.gr/kargig/blog/wp-content/smplayer-300x238.jpg" alt="smplayer" width="300" height="238" /></a></p>
<p><a href="http://www.void.gr/kargig/blog/wp-content/smplayer-0.6.8-quit.patch">smplayer-0.6.8-quit.patch</a>:<br />
<code>--- smplayer-0.6.8/src/baseguiplus.cpp  2009-08-13 16:07:04.000000000 +0300<br />
+++ smplayer-0.6.8/src/baseguiplus.cpp  2009-08-13 16:08:22.000000000 +0300<br />
@@ -67,8 +67,7 @@<br />
tray-&gt;setToolTip( "SMPlayer" );<br />
connect( tray, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),<br />
this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));<br />
-<br />
-       quitAct = new MyAction(this, "quit");<br />
+       quitAct = new MyAction(QKeySequence("Ctrl+Q"), this, "quit");<br />
connect( quitAct, SIGNAL(triggered()), this, SLOT(quit()) );<br />
openMenu-&gt;addAction(quitAct);</code></p>
<p>And a patched ebuild for smplayer-0.6.8 to use this minor patch (only one line is added to the ebuild):<br />
<a href="http://www.void.gr/kargig/blog/wp-content/smplayer-0.6.8-r1.ebuild">smplayer-0.6.8-r1.ebuild</a></p>
<p>P.S. Keybindings in smplayer can be set through Preferences, and someone could actually put Ctrl+Q as the quit shortcut but I think that this should be the default setting like most other applications have it. Uniformity matters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.void.gr/kargig/blog/2009/08/13/minor-uniformity-patch-for-smplayer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
