diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/program/Program.d @ 26:f589fc20a5f9

work on linux phobos
author Frank Benoit <benoit@tionex.de>
date Sat, 21 Mar 2009 11:22:55 +0100
parents f713da8bc051
children ddbfe84d86df
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/program/Program.d	Fri Mar 20 23:03:58 2009 +0100
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/program/Program.d	Sat Mar 21 11:22:55 2009 +0100
@@ -26,7 +26,6 @@
 import tango.sys.SharedLib;
 import tango.core.Exception;
 import tango.core.Array;
-import tango.text.convert.Format;
 import tango.io.device.File;
 import tango.io.stream.Lines;
 
@@ -678,7 +677,7 @@
         program.command = buffer;
         program.gnomeExpectUri = application.expects_uris is GNOME.GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS;
 
-        buffer = fromStringz( application.id) ~ \0;
+        buffer = fromStringz( application.id) ~ '\0';
         ValueWrapperInt gnomeIconTheme = cast(ValueWrapperInt)display.getData(ICON_THEME_DATA);
         char* icon_name = GNOME.gnome_icon_lookup( cast(GtkIconTheme*) gnomeIconTheme.value, null, null, buffer.ptr, null, mimeTypeBuffer,
                 GNOME.GNOME_ICON_LOOKUP_FLAGS_NONE, null);
@@ -896,7 +895,7 @@
  *
  * @see #hashCode()
  */
-public override int opEquals(Object other) {
+public override equals_t opEquals(Object other) {
     if (this is other) return true;
     if (!(cast(Program)other)) return false;
     Program program = cast(Program)other;