Focus toolbar item when pressing Go to Line keybinding only when

it's not in the toolbar's drop down overflow menu (fixes #3027454).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5104 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-07-12 17:09:57 +00:00
parent 5be7577f1b
commit 702956d65a
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2010-07-12 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keybindings.c:
Focus toolbar item when pressing Go to Line keybinding only when
it's not in the toolbar's drop down overflow menu (fixes #3027454).
2010-07-11 Lex Trotman <elextr(at)gmail(dot)com>
* src/build.c:

View File

@ -2003,8 +2003,8 @@ static gboolean cb_func_goto_action(guint key_id)
{
GtkWidget *wid = toolbar_get_widget_child_by_name("GotoEntry");
/* use toolbar item if shown */
if (wid)
/* use toolbar item if shown & not in the drop down overflow menu */
if (wid && GTK_WIDGET_MAPPED(wid))
{
gtk_widget_grab_focus(wid);
return TRUE;