SF.net SVN: geany:[4661] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Feb 13 16:13:06 UTC 2010


Revision: 4661
          http://geany.svn.sourceforge.net/geany/?rev=4661&view=rev
Author:   eht16
Date:     2010-02-13 16:13:00 +0000 (Sat, 13 Feb 2010)

Log Message:
-----------
Add special cases for handling the Select All keybinding (Ctrl-A) in the toolbar search and goto line text entries (closes #2948040).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keybindings.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-02-12 11:37:57 UTC (rev 4660)
+++ trunk/ChangeLog	2010-02-13 16:13:00 UTC (rev 4661)
@@ -1,3 +1,10 @@
+2010-02-13  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/keybindings.c:
+   Add special cases for handling the Select All keybinding (Ctrl-A) in
+   the toolbar search and goto line text entries (closes #2948040).
+
+
 2010-02-07  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * src/geanymenubuttonaction.c, src/templates.c:

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2010-02-12 11:37:57 UTC (rev 4660)
+++ trunk/src/keybindings.c	2010-02-13 16:13:00 UTC (rev 4661)
@@ -2404,6 +2404,8 @@
 	GeanyDocument *doc;
 	ScintillaObject *sci;
 	GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window));
+	GtkWidget *toolbar_search_entry = toolbar_get_widget_child_by_name("SearchEntry");
+	GtkWidget *toolbar_goto_entry = toolbar_get_widget_child_by_name("GotoEntry");
 
 	/* special case for Select All in the scribble widget */
 	if (key_id == GEANY_KEYS_SELECT_ALL && focusw == msgwindow.scribble)
@@ -2411,6 +2413,17 @@
 		g_signal_emit_by_name(msgwindow.scribble, "select-all", TRUE);
 		return TRUE;
 	}
+	/* special case for Select All in the toolbar search widget */
+	else if (key_id == GEANY_KEYS_SELECT_ALL && focusw == toolbar_search_entry)
+	{
+		gtk_editable_select_region(GTK_EDITABLE(toolbar_search_entry), 0, -1);
+		return TRUE;
+	}
+	else if (key_id == GEANY_KEYS_SELECT_ALL && focusw == toolbar_goto_entry)
+	{
+		gtk_editable_select_region(GTK_EDITABLE(toolbar_goto_entry), 0, -1);
+		return TRUE;
+	}
 
 	doc = document_get_current();
 	/* keybindings only valid when scintilla widget has focus */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list