Add 'Switch to Compiler' keybinding (useful when checking build
progress). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2752 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
4b34a992c2
commit
27c5665d01
@ -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>
|
||||
|
||||
@ -67,6 +67,7 @@ static void cb_func_format_action(guint key_id);
|
||||
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 @@ static void init_default_kb(void)
|
||||
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 @@ static gboolean check_current_word(void)
|
||||
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();
|
||||
|
||||
@ -250,6 +250,7 @@ enum
|
||||
GEANY_KEYS_FOCUS_VTE,
|
||||
GEANY_KEYS_FOCUS_SEARCHBAR,
|
||||
GEANY_KEYS_FOCUS_SIDEBAR,
|
||||
GEANY_KEYS_FOCUS_COMPILER,
|
||||
GEANY_KEYS_FOCUS_COUNT
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user