SF.net SVN: geany:[5829] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Jun 2 21:16:43 UTC 2011


Revision: 5829
          http://geany.svn.sourceforge.net/geany/?rev=5829&view=rev
Author:   eht16
Date:     2011-06-02 21:16:43 +0000 (Thu, 02 Jun 2011)

Log Message:
-----------
Focus the editor widget after loading project session files.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-06-02 21:15:37 UTC (rev 5828)
+++ trunk/ChangeLog	2011-06-02 21:16:43 UTC (rev 5829)
@@ -2,6 +2,8 @@
 
  * src/document.c, src/document.h, src/ui_utils.c, src/ui_utils.h:
    Add ui_focus_current_document() and document_grab_focus().
+ * src/project.c:
+   Focus the editor widget after loading project session files.
 
 
 2011-05-30  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/project.c
===================================================================
--- trunk/src/project.c	2011-06-02 21:15:37 UTC (rev 5828)
+++ trunk/src/project.c	2011-06-02 21:16:43 UTC (rev 5829)
@@ -217,6 +217,7 @@
 			configuration_open_files();
 			/* open a new file if no other file was opened */
 			document_new_file_if_non_open();
+			ui_focus_current_document();
 		}
 		return TRUE;
 	}
@@ -383,6 +384,7 @@
 			configuration_open_files();
 			/* open a new file if no other file was opened */
 			document_new_file_if_non_open();
+			ui_focus_current_document();
 		}
 	}
 	g_signal_emit_by_name(geany_object, "project-close");
@@ -1006,6 +1008,7 @@
 		document_close_all();
 		/* read session files so they can be opened with configuration_open_files() */
 		configuration_load_session_files(config, FALSE);
+		ui_focus_current_document();
 	}
 	g_signal_emit_by_name(geany_object, "project-open", config);
 	g_key_file_free(config);


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