Apply patch from Daniel Richard G. to update some source code comments (thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2259 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-02-15 16:32:27 +00:00
parent 85af47b85a
commit 36882435a1
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2008-02-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* tagmanager/python.c: Fix parsing bug when there is text after the
end of a multi line comment (closes #1894084).
* src/socket.c: Apply patch from Daniel Richard G. to update some
source code comments (thanks).
2008-02-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/keybindings.h: Fix broken compilation with GTK < 2.10.

View File

@ -42,10 +42,10 @@
* At the moment the commands open, line and column are available.
*
* About the socket files on Unix-like systems:
* Geany creates a socket in /tmp(or any other directory returned by g_get_tmp_dir()) and it creates
* Geany creates a socket in /tmp (or any other directory returned by g_get_tmp_dir()) and
* a symlink in the current configuration to the created socket file. The symlink is named
* geany_socket.dispnum (dispnum is the number of the active X display).
* If the socket file in the temporara directory could not be created, Geany creates the socket file
* geany_socket_<hostname>_<displayname> (displayname is the name of the active X display).
* If the socket file cannot be created in the temporary directory, Geany creates the socket file
* directly in the configuration directory as a fallback.
*
*/
@ -167,7 +167,7 @@ static void remove_socket_link_full()
real_path[0] = '\0';
// read the contents of the symbolic link socket_info.file_name and delete it
// readlink should return something like "/tmp/geany_socket.1202396669"
// readlink should return something like "/tmp/geany_socket.499602d2"
len = readlink(socket_info.file_name, real_path, sizeof(real_path) - 1);
if ((gint) len > 0)
{
@ -336,12 +336,12 @@ static gint socket_fd_open_unix(const gchar *path)
g_get_tmp_dir(), G_DIR_SEPARATOR, g_random_int());
if (utils_is_file_writeable(real_path) != 0)
{ // if real_path is not writable for us, fall back to /home/user/.geany/geany_socket
{ // if real_path is not writable for us, fall back to ~/.geany/geany_socket_*_*
// instead of creating a symlink and print a warning
g_warning("Socket %s could not be written, using %s as fallback.", real_path, path);
setptr(real_path, g_strdup(path));
}
// create a symlink in e.g. /home/user/.geany/geany_socket to /tmp/geany_socket.1202396669
// create a symlink in e.g. ~/.geany/geany_socket_hostname__0 to /tmp/geany_socket.499602d2
else if (symlink(real_path, path) != 0)
{
perror("symlink");