[geany/geany-plugins] 6d5c45: commander: Always keep the focus in the entry
Colomban Wendling
git-noreply at xxxxx
Sat Aug 4 15:08:39 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 04 Aug 2012 15:08:39
Commit: 6d5c451d0bd41dcb364a13f3aa919a05bf7eb90b
https://github.com/geany/geany-plugins/commit/6d5c451d0bd41dcb364a13f3aa919a05bf7eb90b
Log Message:
-----------
commander: Always keep the focus in the entry
Modified Paths:
--------------
commander/src/commander-plugin.c
Modified: commander/src/commander-plugin.c
5 files changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -232,6 +232,10 @@ enum {
gtk_widget_hide (widget);
return TRUE;
+ case GDK_KEY_Tab:
+ /* avoid leaving the entry */
+ return TRUE;
+
case GDK_KEY_Return:
case GDK_KEY_KP_Enter:
case GDK_KEY_ISO_Enter: {
@@ -542,6 +546,7 @@ enum {
gtk_box_pack_start (GTK_BOX (box), scroll, TRUE, TRUE, 0);
plugin_data.view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (plugin_data.sort));
+ gtk_widget_set_can_focus (plugin_data.view, FALSE);
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (plugin_data.view), FALSE);
cell = gtk_cell_renderer_text_new ();
g_object_set (cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list