Mercurial > projects > dwt2
diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/List.d @ 51:c01d033c633a
[swt lin]
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 19:58:06 +0100 |
parents | 7a2dd761a8b2 |
children | b397a43d66d1 |
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/List.d Fri Mar 27 15:30:20 2009 +0100 +++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/List.d Fri Mar 27 19:58:06 2009 +0100 @@ -26,7 +26,6 @@ import java.lang.all; version(Tango){ -import tango.text.convert.Integer; } else { // Phobos } @@ -455,7 +454,7 @@ OS.gtk_tree_model_iter_nth_child (cast(GtkTreeStore*)modelHandle, &iter, null, index); OS.gtk_tree_model_get1 (cast(GtkTreeStore*)modelHandle, &iter, 0, cast(void**)&ptr ); if (ptr is null) return null; - String res = fromStringz( ptr ).dup; + String res = fromStringz( ptr )._idup(); OS.g_free (ptr); return res; } @@ -530,7 +529,7 @@ OS.gtk_tree_model_iter_nth_child (cast(GtkTreeStore*)modelHandle, &iter, null, index); OS.gtk_tree_model_get1 (cast(GtkTreeStore*)modelHandle, &iter, 0, cast(void**)&ptr); if (ptr !is null) { - String res = fromStringz( ptr ).dup; + String res = fromStringz( ptr )._idup(); OS.g_free (ptr); result [index] = res; } @@ -884,7 +883,7 @@ public bool isSelected (int index) { checkWidget(); auto selection = OS.gtk_tree_view_get_selection (cast(GtkTreeView*)handle); - char* buffer = toStringz(tango.text.convert.Integer.toString(index)); + char* buffer = toStringz(Integer.toString(index)); auto path = OS.gtk_tree_path_new_from_string (buffer); bool answer = cast(bool)OS.gtk_tree_selection_path_is_selected (selection, path); OS.gtk_tree_path_free (path);