Branch: refs/heads/master Author: Thomas Martitz kugel@rockbox.org Committer: Thomas Martitz kugel@rockbox.org Date: Sun, 29 Jun 2014 09:37:47 UTC Commit: 4b8f42cd9e4206e672539dd559e9d41e831a39bd https://github.com/geany/geany/commit/4b8f42cd9e4206e672539dd559e9d41e831a39...
Log Message: ----------- info bars: Explicitely move focus back to the editor when closing
This does not seem to happen automatically, at least on GTK3.
Modified Paths: -------------- src/document.c
Modified: src/document.c 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -3211,6 +3211,8 @@ static gboolean on_sci_key(GtkWidget *widget, GdkEventKey *event, gpointer data) /* Sets up a signal handler to intercept some keys during the lifetime of the GtkInfoBar */ static void enable_key_intercept(GeanyDocument *doc, GtkWidget *bar) { + /* automatically focus editor again on bar close */ + g_signal_connect_swapped(bar, "unrealize", G_CALLBACK(document_grab_focus), doc); g_signal_connect_object(doc->editor->sci, "key-press-event", G_CALLBACK(on_sci_key), bar, 0); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).