SF.net SVN: geany:[4735] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Mar 7 18:43:31 UTC 2010


Revision: 4735
          http://geany.svn.sourceforge.net/geany/?rev=4735&view=rev
Author:   eht16
Date:     2010-03-07 18:43:31 +0000 (Sun, 07 Mar 2010)

Log Message:
-----------
After opening files, focus the editor widget (based on a patch by Can Koy, thanks).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/filebrowser.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-03-07 17:57:45 UTC (rev 4734)
+++ trunk/ChangeLog	2010-03-07 18:43:31 UTC (rev 4735)
@@ -32,6 +32,9 @@
    input focus (patch by Can Koy, thanks).
    Properly show/hide the mesages window when using the View menu item
    (closes #2961282).
+ * plugins/filebrowser.c:
+   After opening files, focus the editor widget
+   (based on a patch by Can Koy, thanks).
 
 
 2010-03-05  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>

Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c	2010-03-07 17:57:45 UTC (rev 4734)
+++ trunk/plugins/filebrowser.c	2010-03-07 18:43:31 UTC (rev 4735)
@@ -448,6 +448,7 @@
 {
 	GSList *files = NULL;
 	GList *item;
+	GeanyDocument *doc;
 
 	for (item = list; item != NULL; item = g_list_next(item))
 	{
@@ -457,6 +458,10 @@
 		files = g_slist_append(files, fname);
 	}
 	document_open_files(files, FALSE, NULL, NULL);
+	doc = document_get_current();
+	if (doc != NULL)
+		keybindings_send_command(GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR);
+
 	g_slist_foreach(files, (GFunc) g_free, NULL);	/* free filenames */
 	g_slist_free(files);
 }


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