Revision: 2752 http://geany.svn.sourceforge.net/geany/?rev=2752&view=rev Author: ntrel Date: 2008-07-03 10:37:00 -0700 (Thu, 03 Jul 2008)
Log Message: ----------- Add 'Switch to Compiler' keybinding (useful when checking build progress).
Modified Paths: -------------- trunk/ChangeLog trunk/src/keybindings.c trunk/src/keybindings.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-07-03 17:21:29 UTC (rev 2751) +++ trunk/ChangeLog 2008-07-03 17:37:00 UTC (rev 2752) @@ -14,6 +14,9 @@ * src/document.c: Ensure all opened documents are colourised before being drawn (should happen anyway in document_set_filetype(), but just in case). + * src/keybindings.c, src/keybindings.h: + Add 'Switch to Compiler' keybinding (useful when checking build + progress).
2008-07-03 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2008-07-03 17:21:29 UTC (rev 2751) +++ trunk/src/keybindings.c 2008-07-03 17:37:00 UTC (rev 2752) @@ -67,6 +67,7 @@ static void cb_func_insert_action(guint key_id); static void cb_func_search_action(guint key_id); static void cb_func_goto_action(guint key_id); +static void cb_func_switch_action(guint key_id); static void cb_func_clipboard(guint key_id); static void cb_func_build_action(guint key_id); static void cb_func_document_action(guint key_id); @@ -389,6 +390,8 @@ GDK_F7, 0, "switch_search_bar", _("Switch to Search Bar"), NULL); keybindings_set_item(group, GEANY_KEYS_FOCUS_SIDEBAR, cb_func_switch_sidebar, 0, 0, "switch_sidebar", _("Switch to Sidebar"), NULL); + keybindings_set_item(group, GEANY_KEYS_FOCUS_COMPILER, cb_func_switch_action, + 0, 0, "switch_compiler", _("Switch to Compiler"), NULL);
group = ADD_KB_GROUP(NOTEBOOK, _("Notebook tab"));
@@ -1189,6 +1192,17 @@ return TRUE; }
+static void cb_func_switch_action(guint key_id) +{ + switch (key_id) + { + case GEANY_KEYS_FOCUS_COMPILER: + msgwin_switch_tab(MSG_COMPILER, TRUE); + break; + } +} + + static void cb_func_switch_editor(G_GNUC_UNUSED guint key_id) { GeanyDocument *doc = document_get_current();
Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2008-07-03 17:21:29 UTC (rev 2751) +++ trunk/src/keybindings.h 2008-07-03 17:37:00 UTC (rev 2752) @@ -250,6 +250,7 @@ GEANY_KEYS_FOCUS_VTE, GEANY_KEYS_FOCUS_SEARCHBAR, GEANY_KEYS_FOCUS_SIDEBAR, + GEANY_KEYS_FOCUS_COMPILER, GEANY_KEYS_FOCUS_COUNT };
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.