Revision: 517 Author: eht16 Date: 2006-07-01 07:12:05 -0700 (Sat, 01 Jul 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=517&view=rev
Log Message: ----------- Added shortcut for Select All.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c trunk/src/keybindings.c trunk/src/keybindings.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-07-01 13:16:52 UTC (rev 516) +++ trunk/ChangeLog 2006-07-01 14:12:05 UTC (rev 517) @@ -1,3 +1,8 @@ +2006-07-01 Enrico Tröger enrico.troeger@uvena.de + + * src/document.c, src/keybindings.c: Added shortcut for Select All. + + 2006-07-01 Nick Treleaven nick.treleaven@btinternet.com
* src/notebook.c: Don't prevent notebook tab focus because this
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-07-01 13:16:52 UTC (rev 516) +++ trunk/src/document.c 2006-07-01 14:12:05 UTC (rev 517) @@ -222,6 +222,8 @@ sci_use_popup(sci, FALSE); sci_assign_cmdkey(sci, SCK_HOME, SCI_VCHOMEWRAP); sci_assign_cmdkey(sci, SCK_END, SCI_LINEENDWRAP); + // disable select all to be able to redefine it + sci_clear_cmdkey(sci, 'A' | (SCMOD_CTRL << 16)); sci_set_mark_long_lines(sci, app->long_line_type, app->long_line_column, app->long_line_color); sci_set_symbol_margin(sci, app->show_markers_margin); sci_set_folding_margin_visible(sci, app->pref_editor_folding);
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2006-07-01 13:16:52 UTC (rev 516) +++ trunk/src/keybindings.c 2006-07-01 14:12:05 UTC (rev 517) @@ -53,6 +53,7 @@ static void cb_func_menu_reloadfile(void); static void cb_func_menu_undo(void); static void cb_func_menu_redo(void); +static void cb_func_menu_selectall(void); static void cb_func_menu_preferences(void); static void cb_func_menu_findnext(void); static void cb_func_menu_findprevious(void); @@ -124,6 +125,8 @@ GDK_z, GDK_CONTROL_MASK, "menu_undo", _("Undo")); keys[GEANY_KEYS_MENU_REDO] = fill(cb_func_menu_redo, GDK_y, GDK_CONTROL_MASK, "menu_redo", _("Redo")); + keys[GEANY_KEYS_MENU_SELECTALL] = fill(cb_func_menu_selectall, + GDK_a, GDK_CONTROL_MASK, "menu_selectall", _("Select All")); keys[GEANY_KEYS_MENU_PREFERENCES] = fill(cb_func_menu_preferences, GDK_p, GDK_CONTROL_MASK, "menu_preferences", _("Preferences")); keys[GEANY_KEYS_MENU_FIND_NEXT] = fill(cb_func_menu_findnext, @@ -246,6 +249,7 @@ GEANY_ADD_ACCEL(GEANY_KEYS_MENU_RELOADFILE, revert1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_UNDO, menu_undo2); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_REDO, menu_redo2); + GEANY_ADD_ACCEL(GEANY_KEYS_MENU_SELECTALL, menu_select_all1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_PREFERENCES, preferences1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_FIND_NEXT, find_next1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_FINDPREVIOUS, find_previous1); @@ -262,6 +266,7 @@
GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_UNDO, undo1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_REDO, redo1); + GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_SELECTALL, menu_select_all2); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_ZOOMIN, zoom_in1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_MENU_ZOOMOUT, zoom_out1); GEANY_ADD_POPUP_ACCEL(GEANY_KEYS_POPUP_FINDUSAGE, find_usage1); @@ -410,6 +415,11 @@ on_redo1_activate(NULL, NULL); }
+static void cb_func_menu_selectall(void) +{ + on_menu_select_all1_activate(NULL, NULL); +} + static void cb_func_menu_preferences(void) { dialogs_show_prefs_dialog();
Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2006-07-01 13:16:52 UTC (rev 516) +++ trunk/src/keybindings.h 2006-07-01 14:12:05 UTC (rev 517) @@ -51,6 +51,7 @@ GEANY_KEYS_MENU_RELOADFILE, GEANY_KEYS_MENU_UNDO, GEANY_KEYS_MENU_REDO, + GEANY_KEYS_MENU_SELECTALL, GEANY_KEYS_MENU_PREFERENCES, GEANY_KEYS_MENU_FIND_NEXT, GEANY_KEYS_MENU_FINDPREVIOUS,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.