Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 20 Apr 2015 20:24:50 UTC Commit: 97ab68244cd889730c61842eb94c1d23b20460b6 https://github.com/geany/geany/commit/97ab68244cd889730c61842eb94c1d23b20460...
Log Message: ----------- Fix "select-all" to work with any GtkTextView, not only the scribble
This makes the code more generic and allows the "select-all" keybinding to work in any GtkTextView, e.g. potentially plugin's ones.
Modified Paths: -------------- src/callbacks.c
Modified: src/callbacks.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -1189,9 +1189,9 @@ void on_menu_select_all1_activate(GtkMenuItem *menuitem, gpointer user_data) GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window));
/* special case for Select All in the scribble widget */ - if (focusw == msgwindow.scribble) + if (GTK_IS_TEXT_VIEW(focusw)) { - g_signal_emit_by_name(msgwindow.scribble, "select-all", TRUE); + g_signal_emit_by_name(focusw, "select-all", TRUE); } /* special case for Select All in the VTE widget */ #ifdef HAVE_VTE
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).