SF.net SVN: geany:[5532] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Jan 30 13:48:21 UTC 2011


Revision: 5532
          http://geany.svn.sourceforge.net/geany/?rev=5532&view=rev
Author:   eht16
Date:     2011-01-30 13:48:21 +0000 (Sun, 30 Jan 2011)

Log Message:
-----------
Ensure the editor widget has the focus when the editor menu is called.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-01-27 16:30:19 UTC (rev 5531)
+++ trunk/ChangeLog	2011-01-30 13:48:21 UTC (rev 5532)
@@ -1,3 +1,10 @@
+2011-01-30  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/editor.c:
+   Ensure the editor widget has the focus when the editor menu is
+   called.
+
+
 2011-01-20  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * plugins/filebrowser.c:

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2011-01-27 16:30:19 UTC (rev 5531)
+++ trunk/src/editor.c	2011-01-30 13:48:21 UTC (rev 5532)
@@ -341,6 +341,9 @@
 	{
 		gboolean can_goto;
 
+		/* ensure the editor widget has the focus after this operation */
+		gtk_widget_grab_focus(widget);
+
 		editor_find_current_word(editor, editor_info.click_pos,
 			current_word, sizeof current_word, NULL);
 


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