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(a)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.
Revision: 1083
http://svn.sourceforge.net/geany/?rev=1083&view=rev
Author: ntrel
Date: 2006-12-11 07:54:45 -0800 (Mon, 11 Dec 2006)
Log Message:
-----------
Link with libsocket if necessary to fix building on Solaris.
Modified Paths:
--------------
trunk/ChangeLog
trunk/configure.in
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-11 13:48:19 UTC (rev 1082)
+++ trunk/ChangeLog 2006-12-11 15:54:45 UTC (rev 1083)
@@ -10,6 +10,8 @@
* src/callbacks.c:
Make indenting and unindenting keep the same cursor position when
the cursor is within the indentation characters.
+ * configure.in:
+ Link with libsocket if necessary to fix building on Solaris.
2006-12-10 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2006-12-11 13:48:19 UTC (rev 1082)
+++ trunk/configure.in 2006-12-11 15:54:45 UTC (rev 1083)
@@ -76,6 +76,8 @@
if test "x$want_socket" = "xyes"; then
AC_DEFINE(HAVE_SOCKET, 1, [Define if you want to detect a running instance])
+ # this should bring in libsocket on Solaris:
+ AC_SEARCH_LIBS([connect],[socket],[],[],[])
fi
# VTE support
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.