diff options
author | Christophe Cornu <ccornu> | 2004-03-01 21:27:55 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-03-01 21:27:55 +0000 |
commit | 8e8123582553dc792749aa213caff99f2409a953 (patch) | |
tree | 7bfad6d04815b6ae6214d64392fe988c23bec786 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org | |
parent | fddc0cdeb3787496a24c9e7901f9b6246b928874 (diff) | |
download | eclipse.platform.swt-8e8123582553dc792749aa213caff99f2409a953.tar.gz eclipse.platform.swt-8e8123582553dc792749aa213caff99f2409a953.tar.xz eclipse.platform.swt-8e8123582553dc792749aa213caff99f2409a953.zip |
64 bit
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org')
5 files changed, 26 insertions, 26 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ImageList.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ImageList.java index b51f58de13..c0c70bc9bc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ImageList.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ImageList.java @@ -101,7 +101,7 @@ public int indexOf (Image image) { return -1; } -int indexOf (int pixbuf) { +int indexOf (int /*long*/ pixbuf) { if (pixbuf == 0) return -1; for (int index=0; index<images.length; index++) { if (pixbuf == pixbufs [index]) return index; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java index c2c9941e1b..133f72d1bc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java @@ -400,7 +400,7 @@ public String getItem (int index) { if (!(0 <= index && index < OS.gtk_tree_model_iter_n_children (modelHandle, 0))) { error (SWT.ERROR_INVALID_RANGE); } - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ()); OS.gtk_tree_model_iter_nth_child (modelHandle, iter, 0, index); OS.gtk_tree_model_get (modelHandle, iter, 0, ptr, -1); @@ -495,7 +495,7 @@ public int getItemHeight () { public String [] getItems () { checkWidget(); int count = OS.gtk_tree_model_iter_n_children (modelHandle, 0); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; String [] result = new String [count]; int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ()); for (int index=0; index<count; index++) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java index 888e06b429..cbca47b47f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java @@ -156,26 +156,26 @@ int /*long*/ textCellDataProc (int /*long*/ tree_column, int /*long*/ cell, int } if (modelIndex == -1) return 0; boolean setData = setCellData (tree_model, iter); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; if (setData) { OS.gtk_tree_model_get (tree_model, iter, modelIndex + 1, ptr, -1); //text if (ptr [0] != 0) { OS.g_object_set(cell, OS.text, ptr[0], 0); OS.g_free (ptr[0]); } - ptr = new int [1]; + ptr = new int /*long*/ [1]; } if (customDraw) { OS.gtk_tree_model_get (tree_model, iter, modelIndex + 2, ptr, -1); //foreground-gdk if (ptr [0] != 0) { OS.g_object_set(cell, OS.foreground_gdk, ptr[0], 0); } - ptr = new int [1]; + ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (tree_model, iter, modelIndex + 3, ptr, -1); //background-gdk if (ptr [0] != 0) { OS.g_object_set(cell, OS.background_gdk, ptr[0], 0); } - ptr = new int [1]; + ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (tree_model, iter, modelIndex + 4, ptr, -1); //font-desc if (ptr [0] != 0) { OS.g_object_set(cell, OS.font_desc, ptr[0], 0); @@ -206,11 +206,11 @@ int /*long*/ pixbufCellDataProc (int /*long*/ tree_column, int /*long*/ cell, in } if (modelIndex == -1) return 0; boolean setData = setCellData (tree_model, iter); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; if (setData) { OS.gtk_tree_model_get (tree_model, iter, modelIndex, ptr, -1); //pixbuf OS.g_object_set(cell, OS.pixbuf, ptr[0], 0); - ptr = new int [1]; + ptr = new int /*long*/ [1]; } if (customDraw) { OS.gtk_tree_model_get (tree_model, iter, modelIndex + 3, ptr, -1); //cell-background-gdk @@ -332,7 +332,7 @@ void createColumn (TableColumn column, int index) { int /*long*/[] types = getColumnTypes (columnCount + 5); int /*long*/ newModel = OS.gtk_list_store_newv (types.length, types); if (newModel == 0) error (SWT.ERROR_NO_HANDLES); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; for (int i=0; i<itemCount; i++) { TableItem item = items [i]; int /*long*/ oldItem = item.handle; @@ -631,7 +631,7 @@ void destroyItem (TableColumn column) { int /*long*/[] types = getColumnTypes (1); int /*long*/ newModel = OS.gtk_list_store_newv (types.length, types); if (newModel == 0) error (SWT.ERROR_NO_HANDLES); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; for (int i=0; i<itemCount; i++) { TableItem item = items [i]; int /*long*/ oldItem = item.handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java index 53c7d3c131..706582564b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java @@ -120,7 +120,7 @@ public TableItem (Table parent, int style) { */ public Color getBackground () { checkWidget (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Table.BACKGROUND_COLUMN, ptr, -1); if (ptr [0] == 0) return parent.getBackground (); GdkColor gdkColor = new GdkColor (); @@ -145,7 +145,7 @@ public Color getBackground (int index) { checkWidget (); int count = Math.max (1, parent.columnCount); if (0 > index || index > count - 1) return getBackground (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex; OS.gtk_tree_model_get (parent.modelHandle, handle, modelIndex + 3, ptr, -1); if (ptr [0] == 0) return getBackground (); @@ -216,7 +216,7 @@ public Rectangle getBounds (int index) { public boolean getChecked () { checkWidget(); if ((parent.style & SWT.CHECK) == 0) return false; - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Table.CHECKED_COLUMN, ptr, -1); return ptr[0] != 0; } @@ -235,7 +235,7 @@ public boolean getChecked () { */ public Font getFont () { checkWidget (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Table.FONT_COLUMN, ptr, -1); if (ptr [0] == 0) return parent.getFont (); return Font.gtk_new (display, ptr[0]); @@ -259,7 +259,7 @@ public Font getFont (int index) { checkWidget (); int count = Math.max (1, parent.columnCount); if (0 > index || index > count - 1) return getFont (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex; OS.gtk_tree_model_get (parent.modelHandle, handle, modelIndex + 4, ptr, -1); if (ptr [0] == 0) return getFont (); @@ -281,7 +281,7 @@ public Font getFont (int index) { */ public Color getForeground () { checkWidget (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Table.FOREGROUND_COLUMN, ptr, -1); if (ptr [0] == 0) return parent.getForeground (); GdkColor gdkColor = new GdkColor (); @@ -307,7 +307,7 @@ public Color getForeground (int index) { checkWidget (); int count = Math.max (1, parent.columnCount); if (0 > index || index > count - 1) return getForeground (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex; OS.gtk_tree_model_get (parent.modelHandle, handle, modelIndex + 2, ptr, -1); if (ptr [0] == 0) return getForeground (); @@ -331,7 +331,7 @@ public Color getForeground (int index) { public boolean getGrayed () { checkWidget (); if ((parent.style & SWT.CHECK) == 0) return false; - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Table.GRAYED_COLUMN, ptr, -1); return ptr[0] != 0; } @@ -360,7 +360,7 @@ public Image getImage (int index) { int /*long*/ parentHandle = parent.handle; int /*long*/ column = OS.gtk_tree_view_get_column (parentHandle, index); if (column == 0) return null; - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex; OS.gtk_tree_model_get (parent.modelHandle, handle, modelIndex, ptr, -1); if (ptr [0] == 0) return null; @@ -502,7 +502,7 @@ public String getText (int index) { int /*long*/ parentHandle = parent.handle; int /*long*/ column = OS.gtk_tree_view_get_column (parentHandle, index); if (column == 0) error(SWT.ERROR_CANNOT_GET_TEXT); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; int modelIndex = parent.columnCount == 0 ? Table.FIRST_COLUMN : parent.columns [index].modelIndex; OS.gtk_tree_model_get (parent.modelHandle, handle, modelIndex + 1, ptr, -1); if (ptr [0] == 0) return ""; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java index 35f16b5520..7fe4faecf6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java @@ -201,7 +201,7 @@ static TreeItem checkNull (TreeItem item) { */ public Color getBackground () { checkWidget (); - int[] ptr = new int[1]; + int /*long*/[] ptr = new int /*long*/[1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Tree.BACKGROUND_COLUMN, ptr, -1); if (ptr [0] == 0) return parent.getBackground (); GdkColor gdkColor = new GdkColor (); @@ -260,7 +260,7 @@ public Rectangle getBounds () { public boolean getChecked () { checkWidget(); if ((parent.style & SWT.CHECK) == 0) return false; - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Tree.CHECKED_COLUMN, ptr, -1); return ptr [0] != 0; } @@ -299,7 +299,7 @@ public boolean getExpanded () { */ public Font getFont () { checkWidget (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Tree.FONT_COLUMN, ptr, -1); if (ptr [0] == 0) return parent.getFont (); return Font.gtk_new (display, ptr[0]); @@ -321,7 +321,7 @@ public Font getFont () { */ public Color getForeground () { checkWidget (); - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Tree.FOREGROUND_COLUMN, ptr, -1); if (ptr [0]==0) return parent.getForeground(); GdkColor gdkColor = new GdkColor (); @@ -345,7 +345,7 @@ public Color getForeground () { public boolean getGrayed() { checkWidget(); if ((parent.style & SWT.CHECK) == 0) return false; - int [] ptr = new int [1]; + int /*long*/ [] ptr = new int /*long*/ [1]; OS.gtk_tree_model_get (parent.modelHandle, handle, Tree.GRAYED_COLUMN, ptr, -1); return ptr [0] != 0; } |