diff options
author | Daniel Carl <danielcarl@gmx.de> | 2013-10-03 20:50:51 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2013-10-03 20:50:51 +0200 |
commit | 14cf6b904c90e32865c29bd0fd42b31de5b4f86d (patch) | |
tree | a5d21f847706df996d69abf9ad404d111ab67747 | |
parent | a7f517eee9c3c7233a3adceb7d7e2228a598d968 (diff) |
Removed mode_input_focusout callback.
This breaks the switching to input mode via hinting, because if the hints
caused entering the input mode we move the focus from inputbox, that called
the callback that forced switching to normal mode.
-rw-r--r-- | src/main.c | 7 | ||||
-rw-r--r-- | src/mode.c | 8 |
2 files changed, 2 insertions, 13 deletions
@@ -740,11 +740,8 @@ static void setup_signals() g_signal_connect( G_OBJECT(vb.gui.window), "key-press-event", G_CALLBACK(map_keypress), NULL ); - g_object_connect( - G_OBJECT(vb.gui.input), - "signal::focus-in-event", G_CALLBACK(mode_input_focusin), NULL, - "signal::focus-out-event", G_CALLBACK(mode_input_focusout), NULL, - NULL + g_signal_connect( + G_OBJECT(vb.gui.input), "focus-in-event", G_CALLBACK(mode_input_focusin), NULL ); g_object_connect( G_OBJECT(vb.gui.buffer), @@ -122,14 +122,6 @@ gboolean mode_input_focusin(GtkWidget *widget, GdkEventFocus *event, gpointer da return false; } -gboolean mode_input_focusout(GtkWidget *widget, GdkEventFocus *event, gpointer data) -{ - /* if focus is lesft from inputbox - switch back to normal mode */ - mode_enter('n'); - - return false; -} - /** * Process input changed event on current active mode. */ |