Only connect vte_keypress() if enable_bash_keys pref is not set.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1955 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-10-18 11:37:45 +00:00
parent f0e2b35c0d
commit 6da493990e
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-10-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/vte.c:
Only connect vte_keypress() if enable_bash_keys pref is not set.
2007-10-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* tagmanager/tm_tag.c, tagmanager/c.c, TODO:

View File

@ -204,7 +204,8 @@ static void create_vte()
g_signal_connect(G_OBJECT(vte), "child-exited", G_CALLBACK(vte_start), NULL);
g_signal_connect(G_OBJECT(vte), "button-press-event", G_CALLBACK(vte_button_pressed), NULL);
g_signal_connect(G_OBJECT(vte), "event", G_CALLBACK(vte_keypress), NULL);
if (! vc->enable_bash_keys)
g_signal_connect(G_OBJECT(vte), "event", G_CALLBACK(vte_keypress), NULL);
g_signal_connect(G_OBJECT(vte), "motion-notify-event", G_CALLBACK(on_motion_event), NULL);
//g_signal_connect(G_OBJECT(vte), "drag-data-received", G_CALLBACK(vte_drag_data_received), NULL);
//g_signal_connect(G_OBJECT(vte), "drag-drop", G_CALLBACK(vte_drag_drop), NULL);
@ -240,7 +241,9 @@ void vte_close(void)
static gboolean vte_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
if (event->type != GDK_KEY_RELEASE || vc->enable_bash_keys)
g_assert(!vc->enable_bash_keys);
if (event->type != GDK_KEY_RELEASE)
return FALSE;
if ((event->keyval == GDK_c ||