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:
parent
f0e2b35c0d
commit
6da493990e
@ -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>
|
2007-10-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||||
|
|
||||||
* tagmanager/tm_tag.c, tagmanager/c.c, TODO:
|
* tagmanager/tm_tag.c, tagmanager/c.c, TODO:
|
||||||
|
@ -204,6 +204,7 @@ static void create_vte()
|
|||||||
|
|
||||||
g_signal_connect(G_OBJECT(vte), "child-exited", G_CALLBACK(vte_start), NULL);
|
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), "button-press-event", G_CALLBACK(vte_button_pressed), NULL);
|
||||||
|
if (! vc->enable_bash_keys)
|
||||||
g_signal_connect(G_OBJECT(vte), "event", G_CALLBACK(vte_keypress), NULL);
|
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), "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-data-received", G_CALLBACK(vte_drag_data_received), NULL);
|
||||||
@ -240,7 +241,9 @@ void vte_close(void)
|
|||||||
|
|
||||||
static gboolean vte_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
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;
|
return FALSE;
|
||||||
|
|
||||||
if ((event->keyval == GDK_c ||
|
if ((event->keyval == GDK_c ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user