Commit 60f88435 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Copy code from queryloaders.c which turns backslashes in slashes on win32.

2004-09-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
	which turns backslashes in slashes on win32.  (#152608, Kazuki IWAMOTO)
parent 03a6952c
2004-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO)
* gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
to the first selected row instead of always to the first row if there
is no cursor. (#143270, Jean Bréfort)
......
2004-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO)
* gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
to the first selected row instead of always to the first row if there
is no cursor. (#143270, Jean Bréfort)
......
2004-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO)
* gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
to the first selected row instead of always to the first row if there
is no cursor. (#143270, Jean Bréfort)
......
2004-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/queryimmodules.c (escape_string): Copy code from queryloaders.c
which turns backslashes in slashes on win32. (#152608, Kazuki IWAMOTO)
* gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Set the cursor
to the first selected row instead of always to the first row if there
is no cursor. (#143270, Jean Bréfort)
......
......@@ -60,6 +60,14 @@ escape_string (const char *str)
case '\"':
g_string_append (result, "\\\"");
break;
#ifdef G_OS_WIN32
/* Replace backslashes in path with forward slashes, so that
* it reads in without problems.
*/
case '\\':
g_string_append (result, "/");
break;
#endif
default:
g_string_append_c (result, c);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment