Revision: 4663 http://geany.svn.sourceforge.net/geany/?rev=4663&view=rev Author: eht16 Date: 2010-02-13 16:31:45 +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: -------------- branches/geany-0.18.1/ChangeLog branches/geany-0.18.1/src/keybindings.c
Modified: branches/geany-0.18.1/ChangeLog =================================================================== --- branches/geany-0.18.1/ChangeLog 2010-02-13 16:30:09 UTC (rev 4662) +++ branches/geany-0.18.1/ChangeLog 2010-02-13 16:31:45 UTC (rev 4663) @@ -1,7 +1,14 @@ +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-09 Nick Treleaven nmt@localhost.localdomain
* tagmanager/ctags.c: - Disable Assert warning for now as some (unnecessary?) asserts are + Disable Assert warning for now as some (unnecessary?) asserts are still firing e.g. for VHDL, Pascal.
Modified: branches/geany-0.18.1/src/keybindings.c =================================================================== --- branches/geany-0.18.1/src/keybindings.c 2010-02-13 16:30:09 UTC (rev 4662) +++ branches/geany-0.18.1/src/keybindings.c 2010-02-13 16:31:45 UTC (rev 4663) @@ -2168,6 +2168,8 @@ GeanyDocument *doc; GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window)); static GtkWidget *scribble_widget = NULL; + 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 (scribble_widget == NULL) /* lookup the scribble widget only once */ @@ -2177,6 +2179,17 @@ g_signal_emit_by_name(scribble_widget, "select-all", TRUE); return; } + /* 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; + } + else if (key_id == GEANY_KEYS_SELECT_ALL && focusw == toolbar_goto_entry) + { + gtk_editable_select_region(GTK_EDITABLE(toolbar_goto_entry), 0, -1); + return; + }
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.