Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Mon, 20 Apr 2015 20:24:50 UTC
Commit: 97ab68244cd889730c61842eb94c1d23b20460b6
https://github.com/geany/geany/commit/97ab68244cd889730c61842eb94c1d23b2046…
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).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Mon, 20 Apr 2015 18:01:18 UTC
Commit: 04c721c3b41dee1fbc82e94dab74f35087b60333
https://github.com/geany/geany/commit/04c721c3b41dee1fbc82e94dab74f35087b60…
Log Message:
-----------
make: Avoid reading an uninitialized value on empty target names
Fixing this is however only theoretically useful, as:
* no actual code paths can currently lead to it;
* even if the code actually ended up reading the uninitialized value,
it would still have a fully defined behavior as the result of the
check is irrelevant in the only case the uninitialized read can
happen.
Anyway, fix this to avoid any possible bad surprises in the future.
Modified Paths:
--------------
tagmanager/ctags/make.c
Modified: tagmanager/ctags/make.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -75,7 +75,7 @@ static boolean isSpecialTarget (vString *const name)
{
size_t i = 0;
/* All special targets begin with '.'. */
- if (vStringChar (name, i++) != '.') {
+ if (vStringLength (name) < 1 || vStringChar (name, i++) != '.') {
return FALSE;
}
while (i < vStringLength (name)) {
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).