SF.net SVN: geany:[5104] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Jul 12 17:09:57 UTC 2010


Revision: 5104
          http://geany.svn.sourceforge.net/geany/?rev=5104&view=rev
Author:   ntrel
Date:     2010-07-12 17:09:57 +0000 (Mon, 12 Jul 2010)

Log Message:
-----------
Focus toolbar item when pressing Go to Line keybinding only when
it's not in the toolbar's drop down overflow menu (fixes #3027454).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keybindings.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-07-11 03:20:25 UTC (rev 5103)
+++ trunk/ChangeLog	2010-07-12 17:09:57 UTC (rev 5104)
@@ -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:

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2010-07-11 03:20:25 UTC (rev 5103)
+++ trunk/src/keybindings.c	2010-07-12 17:09:57 UTC (rev 5104)
@@ -2003,8 +2003,8 @@
 			{
 				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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list