diff --git a/ChangeLog b/ChangeLog index 39c0006af..393b8bfc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-03-26 Mike Kestner + + * generator/SignalHandler.cs : Use Path.DirectorySeparatorChar. + 2002-03-25 Mike Kestner * generator/StructBase.cs : Throttle _gtk methods. diff --git a/generator/SignalHandler.cs b/generator/SignalHandler.cs index 56c59f437..88c3df67d 100644 --- a/generator/SignalHandler.cs +++ b/generator/SignalHandler.cs @@ -80,17 +80,18 @@ namespace GtkSharp.Generation { } String dir; + char sep = Path.DirectorySeparatorChar; if (key.IndexOf("Gtk") >= 0) { - dir = "..\\gtk\\generated"; + dir = ".." + sep + "gtk" + sep + "generated"; } else if (key.IndexOf("Gdk") >= 0) { - dir = "..\\gdk\\generated"; + dir = ".." + sep + "gdk" + sep + "generated"; } else if (key.IndexOf("Atk") >= 0) { - dir = "..\\atk\\generated"; + dir = ".." + sep + "atk" + sep + "generated"; } else if (key.IndexOf("Pango") >= 0) { - dir = "..\\pango\\generated"; + dir = ".." + sep + "pango" + sep + "generated"; } else { - dir = "..\\glib\\generated"; + dir = ".." + sep + "glib" + sep + "generated"; } String sname = name + "Signal"; @@ -103,7 +104,7 @@ namespace GtkSharp.Generation { Directory.CreateDirectory(dir); } - String filename = dir + "\\" + sname + ".cs"; + String filename = dir + sep + sname + ".cs"; FileStream stream = new FileStream (filename, FileMode.Create, FileAccess.Write); StreamWriter sw = new StreamWriter (stream); @@ -148,7 +149,7 @@ namespace GtkSharp.Generation { } sw.WriteLine("\t\t}"); sw.WriteLine(); - sw.Write("\t\t[DllImport(\"gobject-1.3.dll\", "); + sw.Write("\t\t[DllImport(\"gobject-1.3\", "); sw.WriteLine("CallingConvention=CallingConvention.Cdecl)]"); sw.Write("\t\tstatic extern void g_signal_connect_data("); sw.Write("IntPtr obj, String name, " + dname + " cb, int key, IntPtr p,"); diff --git a/sample/HelloWorld.cs b/sample/HelloWorld.cs index d7ff906ca..5e7e01d1e 100755 --- a/sample/HelloWorld.cs +++ b/sample/HelloWorld.cs @@ -2,7 +2,7 @@ // // Author: Mike Kestner // -// (c) 2001 Mike Kestner +// (c) 2001-2002 Mike Kestner namespace GtkSamples {