]> Pileus Git - ~andy/gtk/commitdiff
Copy code from queryloaders.c which turns backslashes in slashes on win32.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Sep 2004 20:02:47 +0000 (20:02 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 14 Sep 2004 20:02:47 +0000 (20:02 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/queryimmodules.c

index c3c001045866d967dcc8815168a831bf61c730b5..c27501e6b84cc20a40788032cd07b8b41062ac7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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)
index c3c001045866d967dcc8815168a831bf61c730b5..c27501e6b84cc20a40788032cd07b8b41062ac7f 100644 (file)
@@ -1,5 +1,8 @@
 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)
index c3c001045866d967dcc8815168a831bf61c730b5..c27501e6b84cc20a40788032cd07b8b41062ac7f 100644 (file)
@@ -1,5 +1,8 @@
 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)
index c3c001045866d967dcc8815168a831bf61c730b5..c27501e6b84cc20a40788032cd07b8b41062ac7f 100644 (file)
@@ -1,5 +1,8 @@
 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)
index 2fe5d61a74e3cecac328a8814acce1993df40a70..432b9d90c0cb4c68fec8e6c00cc018f19fe9cb0f 100644 (file)
@@ -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);
        }