<?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: Key bindings in GTK applications</title>
	<atom:link href="http://mntnoe.com/2010/02/keybindings-in-gtk-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://mntnoe.com/2010/02/keybindings-in-gtk-applications/</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 22:51:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Yurik</title>
		<link>http://mntnoe.com/2010/02/keybindings-in-gtk-applications/#comment-1589</link>
		<dc:creator>Yurik</dc:creator>
		<pubDate>Sun, 22 Jan 2012 22:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mntnoe.com/?p=80#comment-1589</guid>
		<description>That is very helpful, thanks!</description>
		<content:encoded><![CDATA[<p>That is very helpful, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mntnoe</title>
		<link>http://mntnoe.com/2010/02/keybindings-in-gtk-applications/#comment-12</link>
		<dc:creator>mntnoe</dc:creator>
		<pubDate>Thu, 04 Mar 2010 18:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mntnoe.com/?p=80#comment-12</guid>
		<description>Hi Sam, and thanks for the feedback... Nautilus use many of its own widgets and these require special treatment. In Nautilus, my bindings only work for List View (the one selected by ctrl+2). To make the other views work, you need to find out the names and supported signals of the widgets in the source code. You can address a specific widget in two ways. If it has its own class you can use the class name, otherwise you must specify its path. For instance, in Nautilus the location entry has its own class, but the search entry is just a plain GtkEntry:

&lt;code&gt;binding &quot;nautilus-entry&quot;
{
    bind &quot;Return&quot;   { 
                      &quot;activate&quot;   ()
                      &quot;move-focus&quot; (tab-backward)
                      &quot;move-focus&quot; (tab-forward) 
                    }
}
class &quot;NautilusLocationEntry&quot; binding &quot;nautilus-entry&quot;
widget_class &quot;*NautilusSearchBar*GtkEntry&quot; binding &quot;nautilus-entry&quot;&lt;/code&gt;

This will focus the icon widget when you search or enter a path.

If emelfm2 uses the a GtkTreeView, you should be able to select multiple elements by adding a binding that contains shift or control - look at my example of GtkTreeView bindings. Otherwise you might also need to read the emelfm2 source code to see which signals the widget supports.
</description>
		<content:encoded><![CDATA[<p>Hi Sam, and thanks for the feedback&#8230; Nautilus use many of its own widgets and these require special treatment. In Nautilus, my bindings only work for List View (the one selected by ctrl+2). To make the other views work, you need to find out the names and supported signals of the widgets in the source code. You can address a specific widget in two ways. If it has its own class you can use the class name, otherwise you must specify its path. For instance, in Nautilus the location entry has its own class, but the search entry is just a plain GtkEntry:</p>
<p><code>binding "nautilus-entry"<br />
{<br />
    bind "Return"   {<br />
                      "activate"   ()<br />
                      "move-focus" (tab-backward)<br />
                      "move-focus" (tab-forward)<br />
                    }<br />
}<br />
class "NautilusLocationEntry" binding "nautilus-entry"<br />
widget_class "*NautilusSearchBar*GtkEntry" binding "nautilus-entry"</code></p>
<p>This will focus the icon widget when you search or enter a path.</p>
<p>If emelfm2 uses the a GtkTreeView, you should be able to select multiple elements by adding a binding that contains shift or control &#8211; look at my example of GtkTreeView bindings. Otherwise you might also need to read the emelfm2 source code to see which signals the widget supports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://mntnoe.com/2010/02/keybindings-in-gtk-applications/#comment-11</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mntnoe.com/?p=80#comment-11</guid>
		<description>That&#039;s really great. I&#039;m using Emacs all the time and really miss my short-cuts in other applications. I haven&#039;t been able to use your shortcuts on nautilus though. For some reason it doesn&#039;t work. Also, do you know you can select several items? When I select one item and try to move (using emelfm2) the previous item is automatically un-selected. Cheers!</description>
		<content:encoded><![CDATA[<p>That&#8217;s really great. I&#8217;m using Emacs all the time and really miss my short-cuts in other applications. I haven&#8217;t been able to use your shortcuts on nautilus though. For some reason it doesn&#8217;t work. Also, do you know you can select several items? When I select one item and try to move (using emelfm2) the previous item is automatically un-selected. Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

