SF.net SVN: geany: [1085] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Dec 12 17:21:22 UTC 2006
Revision: 1085
http://svn.sourceforge.net/geany/?rev=1085&view=rev
Author: ntrel
Date: 2006-12-12 09:21:22 -0800 (Tue, 12 Dec 2006)
Log Message:
-----------
Make files loaded from the command-line at startup get added to the
recent files menus.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-12 12:12:20 UTC (rev 1084)
+++ trunk/ChangeLog 2006-12-12 17:21:22 UTC (rev 1085)
@@ -3,6 +3,9 @@
* src/build.c, src/interface.c, src/callbacks.c, src/ui_utils.c,
geany.glade:
Use GNOME HIG Header style capitalization for all menu items.
+ * src/main.c:
+ Make files loaded from the command-line at startup get added to the
+ recent files menus.
2006-12-11 Enrico Tröger <enrico.troeger at uvena.de>
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2006-12-12 12:12:20 UTC (rev 1084)
+++ trunk/src/main.c 2006-12-12 17:21:22 UTC (rev 1085)
@@ -590,9 +590,16 @@
if (argv[i] && g_file_test(argv[i], G_FILE_TEST_IS_REGULAR | G_FILE_TEST_IS_SYMLINK))
{
gchar *filename = get_argv_filename(argv[i]);
- document_open_file(-1, filename, 0, FALSE, NULL, NULL);
+ gint idx;
+
+ idx = document_open_file(-1, filename, 0, FALSE, NULL, NULL);
+ // add recent file manually because opening_session_files is set
+ if (DOC_IDX_VALID(idx))
+ ui_add_recent_file(doc_list[idx].file_name);
g_free(filename);
}
+ else
+ geany_debug("Could not load file '%s'.", argv[i]);
}
}
else if (app->pref_main_load_session && cl_options.load_session)
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