Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/.classpath_gtk18
-rw-r--r--bundles/org.eclipse.swt/.classpath_gtk_j2me18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java73
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java142
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java133
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java59
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java69
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragUnderEffect.java52
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java68
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java57
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java35
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragUnderEffect.java92
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/ByteArrayTransfer.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Clipboard.java73
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DragSource.java142
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DropTarget.java133
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/FileTransfer.java59
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/RTFTransfer.java69
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TableDragUnderEffect.java52
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TextTransfer.java68
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Transfer.java57
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TransferData.java35
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TreeDragUnderEffect.java92
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/about.html59
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/cpl-v05.html239
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/lgpl-v21.txt506
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.csh29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_gtk.mak132
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/pixbuf.c235
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.c2663
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.h580
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c7647
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDKPIXBUF.java225
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkFont.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java42
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBin.java19
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBox.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCList.java74
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCListColumn.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCListRow.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCTree.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCTreeRow.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCheckMenuItem.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkColorSelectionDialog.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCombo.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkContainer.java23
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkDialog.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkEditable.java27
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFileSelection.java38
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFontSelectionDialog.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFrame.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkHBox.java18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkItem.java18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkMenuItem.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkObject.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkStyle.java112
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkStyleClass.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkText.java25
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidget.java31
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWindow.java33
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java637
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/about.html59
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/cpl-v05.html239
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/lgpl-v21.txt506
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/build.csh29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/make_gtk.mak132
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/pixbuf.c235
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/structs.c2663
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/structs.h580
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/library/swt.c7647
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GDKPIXBUF.java225
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkColor.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkEvent.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkEventButton.java29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkEventExpose.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkEventKey.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkEventMotion.java29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkFont.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkGCValues.java42
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkRectangle.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GdkVisual.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkAdjustment.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkAllocation.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkBin.java19
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkBox.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCList.java74
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCListColumn.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCListRow.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCTree.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCTreeRow.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCheckMenuItem.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkColorSelectionDialog.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkCombo.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkContainer.java23
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkDialog.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkEditable.java27
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkFileSelection.java38
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkFontSelectionDialog.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkFrame.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkHBox.java18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkItem.java18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkMenuItem.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkObject.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkRequisition.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkStyle.java112
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkStyleClass.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkText.java25
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkWidget.java31
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/GtkWindow.java33
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk1x/org/eclipse/swt/internal/gtk/OS.java637
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java193
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java308
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/gtk1x/org/eclipse/swt/printing/PrintDialog.java193
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/gtk1x/org/eclipse/swt/printing/Printer.java308
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java145
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gtk1x/org/eclipse/swt/program/Program.java145
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java257
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java291
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DefaultGtkStyle.java116
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java482
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/DeviceData.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java209
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontData.java546
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/FontMetrics.java122
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java1697
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GCData.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java638
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Pixbuffer.java492
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java263
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/Converter.java85
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java493
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java264
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Caret.java498
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java166
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java1010
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java489
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java2149
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java459
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java137
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java1513
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java288
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java161
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java253
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java365
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java1089
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java563
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MenuItem.java627
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/MessageBox.java232
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java215
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java333
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scale.java380
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java621
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Scrollable.java239
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java818
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Slider.java527
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java554
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java218
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java1333
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java403
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java483
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java1230
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java361
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java732
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java388
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java820
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java518
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Trim.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/UtilFuncs.java141
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java885
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/WidgetTable.java89
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Color.java257
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Cursor.java291
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/DefaultGtkStyle.java116
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Device.java482
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/DeviceData.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Font.java209
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/FontData.java546
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/FontMetrics.java122
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/GC.java1697
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/GCData.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java638
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Pixbuffer.java492
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Region.java263
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java85
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Button.java493
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Canvas.java264
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java498
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/ColorDialog.java166
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Combo.java1010
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Composite.java489
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Control.java2149
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Decorations.java459
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/DirectoryDialog.java137
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Display.java1513
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/FileDialog.java288
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/FontDialog.java161
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Group.java253
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Label.java365
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/List.java1089
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Menu.java563
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/MenuItem.java627
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/MessageBox.java232
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/ProgressBar.java215
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Sash.java333
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Scale.java380
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/ScrollBar.java621
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Scrollable.java239
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Shell.java818
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Slider.java527
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/TabFolder.java554
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/TabItem.java218
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Table.java1333
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/TableColumn.java403
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/TableItem.java483
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Text.java1230
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/ToolBar.java361
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/ToolItem.java732
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Tracker.java388
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Tree.java820
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/TreeItem.java518
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Trim.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/UtilFuncs.java141
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Widget.java885
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/WidgetTable.java89
-rw-r--r--bundles/org.eclipse.swt/about.html8
-rw-r--r--bundles/org.eclipse.swt/custom.xml62
-rwxr-xr-xbundles/org.eclipse.swt/plugin.xml3
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/about.html59
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/cpl-v05.html239
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/lgpl-v21.txt506
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/libswt-linux-2018.sobin0 -> 202291 bytes
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/libswt-pi-linux-2018.sobin0 -> 222116 bytes
-rw-r--r--bundles/org.eclipse.swt/ws/gtk/libswt-pixbuf-linux-2018.sobin0 -> 8192 bytes
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/about.html59
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/cpl-v05.html239
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/lgpl-v21.txt506
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/libswt-linux-2018.sobin0 -> 202291 bytes
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/libswt-pi-linux-2018.sobin0 -> 222116 bytes
-rw-r--r--bundles/org.eclipse.swt/ws/gtk1x/libswt-pixbuf-linux-2018.sobin0 -> 8192 bytes
251 files changed, 87324 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/.classpath_gtk b/bundles/org.eclipse.swt/.classpath_gtk
new file mode 100644
index 0000000000..b70d21aca7
--- /dev/null
+++ b/bundles/org.eclipse.swt/.classpath_gtk
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="var" path="JRE_LIB"/>
+ <classpathentry kind="src" path="Eclipse SWT/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT/emulated"/>
+ <classpathentry kind="src" path="Eclipse SWT/common"/>
+ <classpathentry kind="src" path="Eclipse SWT/common_j2se"/>
+ <classpathentry kind="src" path="Eclipse SWT Printing/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Printing/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Program/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Program/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Drag and Drop/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Drag and Drop/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Custom Widgets/common"/>
+ <classpathentry kind="src" path="Eclipse SWT PI/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT PI/common_j2se"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/org.eclipse.swt/.classpath_gtk_j2me b/bundles/org.eclipse.swt/.classpath_gtk_j2me
new file mode 100644
index 0000000000..48fef2d099
--- /dev/null
+++ b/bundles/org.eclipse.swt/.classpath_gtk_j2me
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="var" path="JRE_LIB"/>
+ <classpathentry kind="src" path="Eclipse SWT/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT/emulated"/>
+ <classpathentry kind="src" path="Eclipse SWT/common"/>
+ <classpathentry kind="src" path="Eclipse SWT/common_j2me"/>
+ <classpathentry kind="src" path="Eclipse SWT Printing/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Printing/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Program/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Program/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Drag and Drop/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT Drag and Drop/common"/>
+ <classpathentry kind="src" path="Eclipse SWT Custom Widgets/common"/>
+ <classpathentry kind="src" path="Eclipse SWT PI/gtk"/>
+ <classpathentry kind="src" path="Eclipse SWT PI/common_j2me"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java
new file mode 100644
index 0000000000..c8c5e4a05a
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java
@@ -0,0 +1,28 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ * The class <code>ByteArrayTransfer</code> provides a platform specific mechanism for transforming
+ * a Java array of bytes into a format that can be passed around in a Drag and Drop operation and vice
+ * versa.
+ *
+ * <p>This abstract class can be subclassed to provided utilities for transforming Java data types
+ * into the byte array based platform specific drag and drop data types. See TextTransfer and
+ * FileTransfer for examples. If the data you are transferring <b>does not</b> map to a byte array,
+ * you should sub-class Transfer directly and do your own mapping to the platform data types.</p>
+ */
+public abstract class ByteArrayTransfer extends Transfer {
+public TransferData[] getSupportedTypes(){
+ return null;
+}
+public boolean isSupportedType(TransferData transferData){
+ return false;
+}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
new file mode 100644
index 0000000000..b368acb214
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
@@ -0,0 +1,73 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.widgets.*;
+
+/**
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ */
+public class Clipboard {
+
+ private Display display;
+
+public Clipboard(Display display) {
+ checkSubclass ();
+ if (display == null) {
+ display = Display.getCurrent();
+ if (display == null) {
+ display = Display.getDefault();
+ }
+ }
+ if (display.getThread() != Thread.currentThread()) {
+ SWT.error(SWT.ERROR_THREAD_INVALID_ACCESS);
+ }
+ this.display = display;
+}
+protected void checkSubclass () {
+ String name = getClass().getName ();
+ String validName = Clipboard.class.getName();
+ if (!validName.equals(name)) {
+ DND.error (SWT.ERROR_INVALID_SUBCLASS);
+ }
+}
+public void dispose () {
+ display = null;
+}
+public Object getContents(Transfer transfer) {
+ if (display.isDisposed() || !(transfer instanceof TextTransfer)) return null;
+ return display.getData("TextTransfer");
+}
+public void setContents(Object[] data, Transfer[] transferAgents){
+
+ if (data == null) {
+ DND.error(SWT.ERROR_NOT_IMPLEMENTED);
+ }
+ if (transferAgents == null || data.length != transferAgents.length) {
+ DND.error(SWT.ERROR_INVALID_ARGUMENT);
+ }
+
+ if (display.isDisposed() )
+ DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD);
+
+ for (int i = 0; i < transferAgents.length; i++) {
+ if (transferAgents[i] instanceof TextTransfer && data[i] instanceof String){
+ display.setData("TextTransfer", data[i]);
+ return;
+ }
+ }
+}
+/*
+ * Note: getAvailableTypeNames is a tool for writing a Transfer sub-class only. It should
+ * NOT be used within an application because it provides platform specfic
+ * information.
+ */
+public String[] getAvailableTypeNames() {
+ return null;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
new file mode 100644
index 0000000000..1c41d9e326
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
@@ -0,0 +1,142 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ *
+ * Class <code>DragSource</code> defines the source object for a drag and drop transfer.
+ *
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ *
+ * <p>This class defines the following items:<ul>
+ * <li>the <code>Control</code> that the user clicks on to intiate a drag;
+ * <li>the data that will be transferred on a successful drop;
+ * <li>and the modes (move, copy, link) of transfer that are allowed.
+ * </ul></p>
+ *
+ * <p>You may have several DragSources in an application but you can only have one DragSource
+ * per Control. Data dragged from this DragSource can be dropped on a site within this application
+ * but it can also be dropped on another application such as an external Text editor.</p>
+ *
+ * <p>The application supplies the content of the data being transferred by implementing the interface
+ * <code>DragSourceListener</code> which uses the class <code>DragSourceEvent</code>.
+ * The application is required to take the appropriate action to remove the data from the drag source
+ * when a successful move operation occurs.</p>
+ *
+ * <code><pre>
+ * // Enable a label as a Drag Source
+ * Label label = new Label(shell, SWT.NONE);
+ * // This example will allow text to be dragged
+ * Transfer[] types = new Transfer[] {TextTransfer.getInstance()};
+ * // This example will allow the text to be copied or moved to the drop target
+ * int operations = DND.DROP_MOVE | DND.DROP_COPY;
+ *
+ * DragSource source = new DragSource (label, operations);
+ * source.setTransfer(types);
+ * source.addDragListener (new DragSourceListener() {
+ * public void dragStart(DragSourceEvent e) {
+ * // Only start the drag if there is actually text in the
+ * // label - this text will be what is dropped on the target.
+ * if (label.getText().length() == 0) {
+ * event.doit = false;
+ * }
+ * };
+ * public void dragSetData (DragSourceEvent event) {
+ * // A drop has been performed, so provide the data of the
+ * // requested type.
+ * // (Checking the type of the requested data is only
+ * // necessary if the drag source supports more than
+ * // one data type but is shown here as an example).
+ * if (TextTransfer.getInstance().isSupportedType(event.dataType)){
+ * event.data = label.getText();
+ * }
+ * }
+ * public void dragFinished(DragSourceEvent event) {
+ * // A Move operation has been performed so remove the data
+ * // from the source
+ * if (event.detail == DND.DROP_MOVE)
+ * label.setText("");
+ * }
+ * });
+ * </pre></code>
+ *
+ *
+ * <dl>
+ * <dt><b>Styles</b> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ * <dt><b>Events</b> <dd>DND.DragEnd, DND.DragSetData
+ * </dl>
+ */
+public final class DragSource extends Widget {
+
+/**
+ * Creates a new <code>DragSource</code> to handle dragging from the specified <code>Control</code>.
+ *
+ * @param control the <code>Control</code> that the user clicks on to initiate the drag
+ *
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ *
+ */
+public DragSource(Control control, int style) {
+ super (control, style);
+}
+/**
+ * Adds the listener to receive events.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void addDragListener(DragSourceListener listener) {
+
+}
+
+public Display getDisplay () {
+ return null;
+}
+/**
+ * Returns the list of data types that can be transferred by this DragSource.
+ *
+ * @return the list of data types that can be transferred by this DragSource
+ */
+public Transfer[] getTransfer(){
+ return null;
+}
+
+/**
+ * Removes the listener.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void removeDragListener(DragSourceListener listener) {
+}
+/**
+ * Specifies the list of data types that can be transferred by this DragSource.
+ * The application must be able to provide data to match each of these types when
+ * a successful drop has occurred.
+ */
+public void setTransfer(Transfer[] transferAgents){
+}
+/**
+ * @deprecated - use DragSourceListener.dragStart
+ */
+public void startDrag() {
+}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java
new file mode 100644
index 0000000000..1be0fe0207
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java
@@ -0,0 +1,133 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ *
+ * Class <code>DropTarget</code> defines the target object for a drag and drop transfer.
+ *
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ *
+ * <p>This class identifies the <code>Control</code> over which the user must position the cursor
+ * in order to drop the data being transferred. It also specifies what data types can be dropped on
+ * this control and what operations can be performed. You may have several DropTragets in an
+ * application but there can only be a one to one mapping between a <code>Control</code> and a <code>DropTarget</code>.
+ * The DropTarget can receive data from within the same application or from other applications
+ * (such as text dragged from a text editor like Word).</p>
+ *
+ * <code><pre>
+ * int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
+ * Transfer[] types = new Transfer[] {TextTransfer.getInstance()};
+ * DropTarget target = new DropTarget(label, operations);
+ * target.setTransfer(types);
+ * </code></pre>
+ *
+ * <p>The application is notified of data being dragged over this control and of when a drop occurs by
+ * implementing the interface <code>DropTargetListener</code> which uses the class
+ * <code>DropTargetEvent</code>. The application can modify the type of drag being performed
+ * on this Control at any stage of the drag by modifying the <code>event.detail</code> field or the
+ * <code>event.currentDataType</code> field. When the data is dropped, it is the responsibility of
+ * the application to copy this data for its own purposes.
+ *
+ * <code><pre>
+ * target.addDropListener (new DropTargetListener() {
+ * public void dragEnter(DropTargetEvent event) {};
+ * public void dragOver(DropTargetEvent event) {};
+ * public void dragLeave(DropTargetEvent event) {};
+ * public void dragOperationChanged(DropTargetEvent event) {};
+ * public void dropAccept(DropTargetEvent event) {}
+ * public void drop(DropTargetEvent event) {
+ * // A drop has occurred, copy over the data
+ * if (event.data == null) { // no data to copy, indicate failure in event.detail
+ * event.detail = DND.DROP_NONE;
+ * return;
+ * }
+ * label.setText ((String) event.data); // data copied to label text
+ * }
+ * });
+ * </pre></code>
+ *
+ * <dl>
+ * <dt><b>Styles</b> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ * <dt><b>Events</b> <dd>DND.DragEnter, DND.DragLeave, DND.DragOver, DND.DragOperationChanged,
+ * DND.Drop, DND.DropAccept
+ * </dl>
+ */
+public final class DropTarget extends Widget {
+
+/**
+ * Creates a new <code>DropTarget</code> to handle dropping on the specified <code>Control</code>.
+ *
+ * @param control the <code>Control</code> over which the user positions the cursor to drop data
+ *
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ *
+ */
+public DropTarget(Control control, int style) {
+ super(control, style);
+}
+
+/**
+ * Adds the listener to receive events.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void addDropListener(DropTargetListener listener) {
+}
+
+/**
+ * Returns the Control which is registered for this DropTarget. This is the control over which the
+ * user positions the cursor to drop the data.
+ *
+ * @return the Control which is registered for this DropTarget
+ *
+ */
+public Control getControl () {
+ return null;
+}
+public Display getDisplay () {
+ return null;
+}
+/**
+ * Returns the list of data types that can be transferred to this DropTarget.
+ *
+ * @return the list of data types that can be transferred to this DropTarget
+ *
+ */
+public Transfer[] getTransfer() { return null; }
+public void notifyListener (int eventType, Event event) {}
+/**
+ * Removes the listener.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void removeDropListener(DropTargetListener listener) {}
+/**
+ * Specifies the list of data types that can be transferred to this DropTarget.
+ *
+ * @param transferAgents a list of Transfer objects which define the types of data that can be
+ * dropped on this target
+ */
+public void setTransfer(Transfer[] transferAgents){}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java
new file mode 100644
index 0000000000..a3f240b7a6
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java
@@ -0,0 +1,59 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>FileTransfer</code> class is used to transfer files in a drag and drop operation.
+ */
+public class FileTransfer extends ByteArrayTransfer {
+
+private FileTransfer() {}
+/**
+ * Returns the singleton instance of the FileTransfer class.
+ *
+ * @return the singleton instance of the FileTransfer class
+ */
+public static FileTransfer getInstance () {
+ return null;
+}
+/**
+ * Converts a list of filenames to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a list of file names
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative(Object object, TransferData transferData) {
+}
+/**
+ * Converts a platform specific representation of a list of file names to a Java array of String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java array of String containing a list of file names if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData) {
+ return null;
+}
+protected String[] getTypeNames(){
+ return null;
+}
+protected int[] getTypeIds(){
+ return null;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java
new file mode 100644
index 0000000000..490afaebc7
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java
@@ -0,0 +1,69 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>RTFTransfer</code> class is used to transfer text with the RTF format
+ * in a drag and drop operation.
+ */
+public class RTFTransfer extends ByteArrayTransfer {
+
+ private static RTFTransfer _instance = new RTFTransfer();
+ private static final String TYPENAME1 = "text/rtf\0";
+ private static final int TYPEID1 = registerType(TYPENAME1);
+ private static final String TYPENAME2 = "TEXT/RTF\0";
+ private static final int TYPEID2 = registerType(TYPENAME2);
+ private static final String TYPENAME3 = "application/rtf\0";
+ private static final int TYPEID3 = registerType(TYPENAME3);
+
+private RTFTransfer() {
+}
+/**
+ * Returns the singleton instance of the RTFTransfer class.
+ *
+ * @return the singleton instance of the RTFTransfer class
+ */
+public static RTFTransfer getInstance () {
+ return _instance;
+}
+/**
+ * Converts a RTF-formatted Java String to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a Java String containing the data to be transferred
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative (Object object, TransferData transferData){
+}
+/**
+ * Converts a platform specific representation of a string to a Java String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java String containing the transferred data if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData){
+ return null;
+}
+protected String[] getTypeNames(){
+ return new String[]{TYPENAME1, TYPENAME2, TYPENAME3};
+}
+protected int[] getTypeIds(){
+ return new int[]{TYPEID1, TYPEID2, TYPEID3};
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragUnderEffect.java
new file mode 100644
index 0000000000..6862a2ea48
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragUnderEffect.java
@@ -0,0 +1,52 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+
+class TableDragUnderEffect extends DragUnderEffect {
+ private Table table;
+ private TableItem currentItem;
+ private TableItem[] selection = new TableItem[0];
+ private int currentEffect = DND.FEEDBACK_NONE;
+
+TableDragUnderEffect(Table table) {
+ this.table = table;
+}
+void show(int effect, int x, int y) {
+ TableItem item = null;
+ if (effect != DND.FEEDBACK_NONE) item = findItem(x, y);
+ if (item == null) effect = DND.FEEDBACK_NONE;
+ if (currentEffect != effect && currentEffect == DND.FEEDBACK_NONE) {
+ selection = table.getSelection();
+ table.setSelection(new TableItem[0]);
+ }
+ boolean restoreSelection = currentEffect != effect && effect == DND.FEEDBACK_NONE;
+ setDragUnderEffect(effect, item);
+ if (restoreSelection) {
+ table.setSelection(selection);
+ selection = new TableItem[0];
+ }
+}
+private TableItem findItem(int x, int y){
+ if (table == null) return null;
+ Point coordinates = new Point(x, y);
+ coordinates = table.toControl(coordinates);
+ return table.getItem(coordinates);
+}
+private void setDragUnderEffect(int effect, TableItem item) {
+ if (currentItem != item) {
+ if (item == null) {
+ table.setSelection(new TableItem[0]);
+ } else {
+ table.setSelection(new TableItem[] {item});
+ }
+ currentItem = item;
+ }
+ currentEffect = effect;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java
new file mode 100644
index 0000000000..d84cbfe40a
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java
@@ -0,0 +1,68 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>TextTransfer</code> class is used to transfer text in a drag and drop operation.
+ */
+public class TextTransfer extends ByteArrayTransfer {
+
+ private static TextTransfer _instance = new TextTransfer();
+ private static final String TYPENAME1 = "STRING\0";
+ private static final int TYPEID1 = registerType(TYPENAME1);
+ private static final String TYPENAME2 = "text/plain\0";
+ private static final int TYPEID2 = registerType(TYPENAME2);
+ private static final String TYPENAME3 = "text/text\0";
+ private static final int TYPEID3 = registerType(TYPENAME3);
+
+private TextTransfer() {
+}
+/**
+ * Returns the singleton instance of the TextTransfer class.
+ *
+ * @return the singleton instance of the TextTransfer class
+ */
+public static TextTransfer getInstance () {
+ return _instance;
+}
+/**
+ * Converts a plain text Java String to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a Java String containing the data to be transferred
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative (Object object, TransferData transferData){
+}
+/**
+ * Converts a platform specific representation of a string to a Java String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java String containing the transferred data if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData){
+ return null;
+}
+protected String[] getTypeNames(){
+ return new String[]{TYPENAME1, TYPENAME2, TYPENAME3};
+}
+protected int[] getTypeIds(){
+ return new int[]{TYPEID1, TYPEID2, TYPEID3};
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java
new file mode 100644
index 0000000000..9dcf84ff27
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java
@@ -0,0 +1,57 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.internal.Converter;
+import org.eclipse.swt.internal.gtk.OS;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * The class <code>Transfer</code> provides a mechanism for converting a Java object to a
+ * platform specific format that can be passed around in a Drag and Drop operation and vice versa.
+ *
+ * <p>You should only need to become familiar with this class if you are implementing
+ * a Transfer subclass and you are unable to subclass the ByteArrayTransfer class.</p>
+ */
+public abstract class Transfer {
+/**
+ * Returns a list of the data types that can be transferred using this Transfer agent.
+ *
+ * <p>Only the data type fields of the TransferData Object are filled in.</p>
+ *
+ * @return a list of the data types that can be transferred using this Transfer agent
+ */
+abstract public TransferData[] getSupportedTypes();
+/**
+ * Returns true if the transferData data type can be transferred using this Transfer agent.
+ *
+ * @param transferData a platform specific description of a data type; only the data type fields
+ * of the TransferData Object need to be filled in
+ *
+ * @return true if the transferData data type can be transferred using this Transfer agent
+ */
+abstract public boolean isSupportedType(TransferData transferData);
+abstract protected String[] getTypeNames();
+abstract protected int[] getTypeIds();
+abstract protected void javaToNative (Object object, TransferData transferData);
+abstract protected Object nativeToJava(TransferData transferData);
+/**
+ * Registers a name for a data type and returns the associated unique identifier.
+ *
+ * <p>You may register the same type more than once, the same unique identifier will be returned if the
+ * type has been previously registered.</p>
+ *
+ * <p>Note: Do <b>not</b> call this method with pre-defined Clipboard Format types such as CF_TEXT
+ * or CF_BITMAP because the pre-defined value will not be returned</p>
+ *
+ * @param formatName the name of a data type
+ *
+ * @return the unique identifier associated with htis data type
+ */
+public static int registerType(String formatName){
+ return 0;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java
new file mode 100644
index 0000000000..bade8baef0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java
@@ -0,0 +1,35 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>TransferData</code> class is a platform specific data structure for describing the type and the
+ * contents of data being transferred in a Drag and Drop operation.
+ *
+ * <p>As an application writer, you do not need to know anything about the specifics of TransferData. You
+ * should just pass the TransferData instances to subclass of Transfer and let the Transfer objects deal
+ * with the platform specific issues. You can ask a Transfer subclass if it can handle this data by calling
+ * TextTransfer.isSupportedType(transferData). You can get a list of the types of TransferData supported by a
+ * Transfer object by calling TextTransfer.getSupportedTypes().</p>
+ *
+ * <p>You should only need to become familiar with the fields in this class if you are implementing
+ * a Transfer subclass and you are unable to subclass the ByteArrayTransfer class.</p>
+ */
+public class TransferData {
+ /**
+ * Data Type - a pre-defined clipboard format <b>or</b> the unique identifier of a user defined format
+ * (Warning: This field is platform dependent)
+ */
+ public int type;
+
+ // attributes specific to set/get
+ int length;
+ int format;
+ int pValue;
+
+ int result;
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragUnderEffect.java
new file mode 100644
index 0000000000..54ff723827
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TreeDragUnderEffect.java
@@ -0,0 +1,92 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+
+class TreeDragUnderEffect extends DragUnderEffect {
+
+ private Tree tree;
+ private TreeItem currentItem = null;
+ private int currentEffect = DND.FEEDBACK_NONE;
+ private TreeItem[] selection = new TreeItem[0];
+
+TreeDragUnderEffect(Tree tree) {
+ this.tree = tree;
+}
+void show(int effect, int x, int y) {
+ TreeItem item = null;
+ if (effect != DND.FEEDBACK_NONE) item = findItem(x, y);
+ if (item == null) effect = DND.FEEDBACK_NONE;
+ if (currentEffect != effect && currentEffect == DND.FEEDBACK_NONE) {
+ selection = tree.getSelection();
+ tree.setSelection(new TreeItem[0]);
+ }
+ boolean restoreSelection = currentEffect != effect && effect == DND.FEEDBACK_NONE;
+ setDragUnderEffect(effect, item);
+ if (restoreSelection) {
+ tree.setSelection(selection);
+ selection = new TreeItem[0];
+ }
+}
+private TreeItem findItem(int x , int y){
+ Point coordinates = new Point(x, y);
+ coordinates = tree.toControl(coordinates);
+ return tree.getItem(coordinates);
+}
+private void setDragUnderEffect(int effect, TreeItem item) {
+ switch (effect) {
+ case DND.FEEDBACK_SELECT:
+ if (currentEffect == DND.FEEDBACK_INSERT_AFTER ||
+ currentEffect == DND.FEEDBACK_INSERT_BEFORE) {
+ setInsertMark(null, false);
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ }
+ if (currentEffect != effect || currentItem != item) {
+ setDropSelection(item);
+ currentEffect = DND.FEEDBACK_SELECT;
+ currentItem = item;
+ }
+ break;
+ case DND.FEEDBACK_INSERT_AFTER:
+ case DND.FEEDBACK_INSERT_BEFORE:
+ if (currentEffect == DND.FEEDBACK_SELECT) {
+ setDropSelection(null);
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ }
+ if (currentEffect != effect || currentItem != item) {
+ setInsertMark(item, effect == DND.FEEDBACK_INSERT_AFTER);
+ currentEffect = effect;
+ currentItem = item;
+ }
+ break;
+ default :
+ if (currentEffect == DND.FEEDBACK_INSERT_AFTER ||
+ currentEffect == DND.FEEDBACK_INSERT_BEFORE) {
+ setInsertMark(null, false);
+ }
+ if (currentEffect == DND.FEEDBACK_SELECT) {
+ setDropSelection(null);
+ }
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ break;
+ }
+}
+private void setDropSelection (TreeItem item) {
+ if (item == null) {
+ tree.setSelection(new TreeItem[0]);
+ } else {
+ tree.setSelection(new TreeItem[]{item});
+ }
+}
+private void setInsertMark (TreeItem item, boolean after) {
+ // not currently implemented
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/ByteArrayTransfer.java
new file mode 100644
index 0000000000..c8c5e4a05a
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/ByteArrayTransfer.java
@@ -0,0 +1,28 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ * The class <code>ByteArrayTransfer</code> provides a platform specific mechanism for transforming
+ * a Java array of bytes into a format that can be passed around in a Drag and Drop operation and vice
+ * versa.
+ *
+ * <p>This abstract class can be subclassed to provided utilities for transforming Java data types
+ * into the byte array based platform specific drag and drop data types. See TextTransfer and
+ * FileTransfer for examples. If the data you are transferring <b>does not</b> map to a byte array,
+ * you should sub-class Transfer directly and do your own mapping to the platform data types.</p>
+ */
+public abstract class ByteArrayTransfer extends Transfer {
+public TransferData[] getSupportedTypes(){
+ return null;
+}
+public boolean isSupportedType(TransferData transferData){
+ return false;
+}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Clipboard.java
new file mode 100644
index 0000000000..b368acb214
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Clipboard.java
@@ -0,0 +1,73 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.widgets.*;
+
+/**
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ */
+public class Clipboard {
+
+ private Display display;
+
+public Clipboard(Display display) {
+ checkSubclass ();
+ if (display == null) {
+ display = Display.getCurrent();
+ if (display == null) {
+ display = Display.getDefault();
+ }
+ }
+ if (display.getThread() != Thread.currentThread()) {
+ SWT.error(SWT.ERROR_THREAD_INVALID_ACCESS);
+ }
+ this.display = display;
+}
+protected void checkSubclass () {
+ String name = getClass().getName ();
+ String validName = Clipboard.class.getName();
+ if (!validName.equals(name)) {
+ DND.error (SWT.ERROR_INVALID_SUBCLASS);
+ }
+}
+public void dispose () {
+ display = null;
+}
+public Object getContents(Transfer transfer) {
+ if (display.isDisposed() || !(transfer instanceof TextTransfer)) return null;
+ return display.getData("TextTransfer");
+}
+public void setContents(Object[] data, Transfer[] transferAgents){
+
+ if (data == null) {
+ DND.error(SWT.ERROR_NOT_IMPLEMENTED);
+ }
+ if (transferAgents == null || data.length != transferAgents.length) {
+ DND.error(SWT.ERROR_INVALID_ARGUMENT);
+ }
+
+ if (display.isDisposed() )
+ DND.error(DND.ERROR_CANNOT_SET_CLIPBOARD);
+
+ for (int i = 0; i < transferAgents.length; i++) {
+ if (transferAgents[i] instanceof TextTransfer && data[i] instanceof String){
+ display.setData("TextTransfer", data[i]);
+ return;
+ }
+ }
+}
+/*
+ * Note: getAvailableTypeNames is a tool for writing a Transfer sub-class only. It should
+ * NOT be used within an application because it provides platform specfic
+ * information.
+ */
+public String[] getAvailableTypeNames() {
+ return null;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DragSource.java
new file mode 100644
index 0000000000..1c41d9e326
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DragSource.java
@@ -0,0 +1,142 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ *
+ * Class <code>DragSource</code> defines the source object for a drag and drop transfer.
+ *
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ *
+ * <p>This class defines the following items:<ul>
+ * <li>the <code>Control</code> that the user clicks on to intiate a drag;
+ * <li>the data that will be transferred on a successful drop;
+ * <li>and the modes (move, copy, link) of transfer that are allowed.
+ * </ul></p>
+ *
+ * <p>You may have several DragSources in an application but you can only have one DragSource
+ * per Control. Data dragged from this DragSource can be dropped on a site within this application
+ * but it can also be dropped on another application such as an external Text editor.</p>
+ *
+ * <p>The application supplies the content of the data being transferred by implementing the interface
+ * <code>DragSourceListener</code> which uses the class <code>DragSourceEvent</code>.
+ * The application is required to take the appropriate action to remove the data from the drag source
+ * when a successful move operation occurs.</p>
+ *
+ * <code><pre>
+ * // Enable a label as a Drag Source
+ * Label label = new Label(shell, SWT.NONE);
+ * // This example will allow text to be dragged
+ * Transfer[] types = new Transfer[] {TextTransfer.getInstance()};
+ * // This example will allow the text to be copied or moved to the drop target
+ * int operations = DND.DROP_MOVE | DND.DROP_COPY;
+ *
+ * DragSource source = new DragSource (label, operations);
+ * source.setTransfer(types);
+ * source.addDragListener (new DragSourceListener() {
+ * public void dragStart(DragSourceEvent e) {
+ * // Only start the drag if there is actually text in the
+ * // label - this text will be what is dropped on the target.
+ * if (label.getText().length() == 0) {
+ * event.doit = false;
+ * }
+ * };
+ * public void dragSetData (DragSourceEvent event) {
+ * // A drop has been performed, so provide the data of the
+ * // requested type.
+ * // (Checking the type of the requested data is only
+ * // necessary if the drag source supports more than
+ * // one data type but is shown here as an example).
+ * if (TextTransfer.getInstance().isSupportedType(event.dataType)){
+ * event.data = label.getText();
+ * }
+ * }
+ * public void dragFinished(DragSourceEvent event) {
+ * // A Move operation has been performed so remove the data
+ * // from the source
+ * if (event.detail == DND.DROP_MOVE)
+ * label.setText("");
+ * }
+ * });
+ * </pre></code>
+ *
+ *
+ * <dl>
+ * <dt><b>Styles</b> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ * <dt><b>Events</b> <dd>DND.DragEnd, DND.DragSetData
+ * </dl>
+ */
+public final class DragSource extends Widget {
+
+/**
+ * Creates a new <code>DragSource</code> to handle dragging from the specified <code>Control</code>.
+ *
+ * @param control the <code>Control</code> that the user clicks on to initiate the drag
+ *
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ *
+ */
+public DragSource(Control control, int style) {
+ super (control, style);
+}
+/**
+ * Adds the listener to receive events.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void addDragListener(DragSourceListener listener) {
+
+}
+
+public Display getDisplay () {
+ return null;
+}
+/**
+ * Returns the list of data types that can be transferred by this DragSource.
+ *
+ * @return the list of data types that can be transferred by this DragSource
+ */
+public Transfer[] getTransfer(){
+ return null;
+}
+
+/**
+ * Removes the listener.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void removeDragListener(DragSourceListener listener) {
+}
+/**
+ * Specifies the list of data types that can be transferred by this DragSource.
+ * The application must be able to provide data to match each of these types when
+ * a successful drop has occurred.
+ */
+public void setTransfer(Transfer[] transferAgents){
+}
+/**
+ * @deprecated - use DragSourceListener.dragStart
+ */
+public void startDrag() {
+}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DropTarget.java
new file mode 100644
index 0000000000..1be0fe0207
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/DropTarget.java
@@ -0,0 +1,133 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.internal.*;
+import org.eclipse.swt.internal.gtk.*;
+
+/**
+ *
+ * Class <code>DropTarget</code> defines the target object for a drag and drop transfer.
+ *
+ * IMPORTANT: This class is <em>not</em> intended to be subclassed.
+ *
+ * <p>This class identifies the <code>Control</code> over which the user must position the cursor
+ * in order to drop the data being transferred. It also specifies what data types can be dropped on
+ * this control and what operations can be performed. You may have several DropTragets in an
+ * application but there can only be a one to one mapping between a <code>Control</code> and a <code>DropTarget</code>.
+ * The DropTarget can receive data from within the same application or from other applications
+ * (such as text dragged from a text editor like Word).</p>
+ *
+ * <code><pre>
+ * int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
+ * Transfer[] types = new Transfer[] {TextTransfer.getInstance()};
+ * DropTarget target = new DropTarget(label, operations);
+ * target.setTransfer(types);
+ * </code></pre>
+ *
+ * <p>The application is notified of data being dragged over this control and of when a drop occurs by
+ * implementing the interface <code>DropTargetListener</code> which uses the class
+ * <code>DropTargetEvent</code>. The application can modify the type of drag being performed
+ * on this Control at any stage of the drag by modifying the <code>event.detail</code> field or the
+ * <code>event.currentDataType</code> field. When the data is dropped, it is the responsibility of
+ * the application to copy this data for its own purposes.
+ *
+ * <code><pre>
+ * target.addDropListener (new DropTargetListener() {
+ * public void dragEnter(DropTargetEvent event) {};
+ * public void dragOver(DropTargetEvent event) {};
+ * public void dragLeave(DropTargetEvent event) {};
+ * public void dragOperationChanged(DropTargetEvent event) {};
+ * public void dropAccept(DropTargetEvent event) {}
+ * public void drop(DropTargetEvent event) {
+ * // A drop has occurred, copy over the data
+ * if (event.data == null) { // no data to copy, indicate failure in event.detail
+ * event.detail = DND.DROP_NONE;
+ * return;
+ * }
+ * label.setText ((String) event.data); // data copied to label text
+ * }
+ * });
+ * </pre></code>
+ *
+ * <dl>
+ * <dt><b>Styles</b> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ * <dt><b>Events</b> <dd>DND.DragEnter, DND.DragLeave, DND.DragOver, DND.DragOperationChanged,
+ * DND.Drop, DND.DropAccept
+ * </dl>
+ */
+public final class DropTarget extends Widget {
+
+/**
+ * Creates a new <code>DropTarget</code> to handle dropping on the specified <code>Control</code>.
+ *
+ * @param control the <code>Control</code> over which the user positions the cursor to drop data
+ *
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
+ *
+ */
+public DropTarget(Control control, int style) {
+ super(control, style);
+}
+
+/**
+ * Adds the listener to receive events.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void addDropListener(DropTargetListener listener) {
+}
+
+/**
+ * Returns the Control which is registered for this DropTarget. This is the control over which the
+ * user positions the cursor to drop the data.
+ *
+ * @return the Control which is registered for this DropTarget
+ *
+ */
+public Control getControl () {
+ return null;
+}
+public Display getDisplay () {
+ return null;
+}
+/**
+ * Returns the list of data types that can be transferred to this DropTarget.
+ *
+ * @return the list of data types that can be transferred to this DropTarget
+ *
+ */
+public Transfer[] getTransfer() { return null; }
+public void notifyListener (int eventType, Event event) {}
+/**
+ * Removes the listener.
+ *
+ * @param listener the listener
+ *
+ * @exception SWTError
+ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
+ * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
+ * <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
+ */
+public void removeDropListener(DropTargetListener listener) {}
+/**
+ * Specifies the list of data types that can be transferred to this DropTarget.
+ *
+ * @param transferAgents a list of Transfer objects which define the types of data that can be
+ * dropped on this target
+ */
+public void setTransfer(Transfer[] transferAgents){}
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/FileTransfer.java
new file mode 100644
index 0000000000..a3f240b7a6
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/FileTransfer.java
@@ -0,0 +1,59 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>FileTransfer</code> class is used to transfer files in a drag and drop operation.
+ */
+public class FileTransfer extends ByteArrayTransfer {
+
+private FileTransfer() {}
+/**
+ * Returns the singleton instance of the FileTransfer class.
+ *
+ * @return the singleton instance of the FileTransfer class
+ */
+public static FileTransfer getInstance () {
+ return null;
+}
+/**
+ * Converts a list of filenames to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a list of file names
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative(Object object, TransferData transferData) {
+}
+/**
+ * Converts a platform specific representation of a list of file names to a Java array of String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java array of String containing a list of file names if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData) {
+ return null;
+}
+protected String[] getTypeNames(){
+ return null;
+}
+protected int[] getTypeIds(){
+ return null;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/RTFTransfer.java
new file mode 100644
index 0000000000..490afaebc7
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/RTFTransfer.java
@@ -0,0 +1,69 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>RTFTransfer</code> class is used to transfer text with the RTF format
+ * in a drag and drop operation.
+ */
+public class RTFTransfer extends ByteArrayTransfer {
+
+ private static RTFTransfer _instance = new RTFTransfer();
+ private static final String TYPENAME1 = "text/rtf\0";
+ private static final int TYPEID1 = registerType(TYPENAME1);
+ private static final String TYPENAME2 = "TEXT/RTF\0";
+ private static final int TYPEID2 = registerType(TYPENAME2);
+ private static final String TYPENAME3 = "application/rtf\0";
+ private static final int TYPEID3 = registerType(TYPENAME3);
+
+private RTFTransfer() {
+}
+/**
+ * Returns the singleton instance of the RTFTransfer class.
+ *
+ * @return the singleton instance of the RTFTransfer class
+ */
+public static RTFTransfer getInstance () {
+ return _instance;
+}
+/**
+ * Converts a RTF-formatted Java String to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a Java String containing the data to be transferred
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative (Object object, TransferData transferData){
+}
+/**
+ * Converts a platform specific representation of a string to a Java String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java String containing the transferred data if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData){
+ return null;
+}
+protected String[] getTypeNames(){
+ return new String[]{TYPENAME1, TYPENAME2, TYPENAME3};
+}
+protected int[] getTypeIds(){
+ return new int[]{TYPEID1, TYPEID2, TYPEID3};
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TableDragUnderEffect.java
new file mode 100644
index 0000000000..6862a2ea48
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TableDragUnderEffect.java
@@ -0,0 +1,52 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+
+class TableDragUnderEffect extends DragUnderEffect {
+ private Table table;
+ private TableItem currentItem;
+ private TableItem[] selection = new TableItem[0];
+ private int currentEffect = DND.FEEDBACK_NONE;
+
+TableDragUnderEffect(Table table) {
+ this.table = table;
+}
+void show(int effect, int x, int y) {
+ TableItem item = null;
+ if (effect != DND.FEEDBACK_NONE) item = findItem(x, y);
+ if (item == null) effect = DND.FEEDBACK_NONE;
+ if (currentEffect != effect && currentEffect == DND.FEEDBACK_NONE) {
+ selection = table.getSelection();
+ table.setSelection(new TableItem[0]);
+ }
+ boolean restoreSelection = currentEffect != effect && effect == DND.FEEDBACK_NONE;
+ setDragUnderEffect(effect, item);
+ if (restoreSelection) {
+ table.setSelection(selection);
+ selection = new TableItem[0];
+ }
+}
+private TableItem findItem(int x, int y){
+ if (table == null) return null;
+ Point coordinates = new Point(x, y);
+ coordinates = table.toControl(coordinates);
+ return table.getItem(coordinates);
+}
+private void setDragUnderEffect(int effect, TableItem item) {
+ if (currentItem != item) {
+ if (item == null) {
+ table.setSelection(new TableItem[0]);
+ } else {
+ table.setSelection(new TableItem[] {item});
+ }
+ currentItem = item;
+ }
+ currentEffect = effect;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TextTransfer.java
new file mode 100644
index 0000000000..d84cbfe40a
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TextTransfer.java
@@ -0,0 +1,68 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>TextTransfer</code> class is used to transfer text in a drag and drop operation.
+ */
+public class TextTransfer extends ByteArrayTransfer {
+
+ private static TextTransfer _instance = new TextTransfer();
+ private static final String TYPENAME1 = "STRING\0";
+ private static final int TYPEID1 = registerType(TYPENAME1);
+ private static final String TYPENAME2 = "text/plain\0";
+ private static final int TYPEID2 = registerType(TYPENAME2);
+ private static final String TYPENAME3 = "text/text\0";
+ private static final int TYPEID3 = registerType(TYPENAME3);
+
+private TextTransfer() {
+}
+/**
+ * Returns the singleton instance of the TextTransfer class.
+ *
+ * @return the singleton instance of the TextTransfer class
+ */
+public static TextTransfer getInstance () {
+ return _instance;
+}
+/**
+ * Converts a plain text Java String to a platform specific representation.
+ * <p>
+ * On a successful conversion, the transferData.result field will be set as follows:
+ * <ul>
+ * <li>Windows: OLE.S_OK
+ * <li>Motif: 0
+ * </ul>
+ * If this transfer agent is unable to perform the conversion,
+ * the transferData.result field will be set to a failure value as follows:
+ * <ul>
+ * <li>Windows: OLE.DV_E_TYMED
+ * <li>Motif: 1
+ * </ul></p>
+ *
+ * @param object a Java String containing the data to be transferred
+ * @param transferData an empty TransferData object; this object will be filled in on return
+ * with the platform specific format of the data
+ */
+public void javaToNative (Object object, TransferData transferData){
+}
+/**
+ * Converts a platform specific representation of a string to a Java String.
+ *
+ * @param transferData the platform specific representation of the data that has been transferred
+ * @return a Java String containing the transferred data if the conversion was successful;
+ * otherwise null
+ */
+public Object nativeToJava(TransferData transferData){
+ return null;
+}
+protected String[] getTypeNames(){
+ return new String[]{TYPENAME1, TYPENAME2, TYPENAME3};
+}
+protected int[] getTypeIds(){
+ return new int[]{TYPEID1, TYPEID2, TYPEID3};
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Transfer.java
new file mode 100644
index 0000000000..9dcf84ff27
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/Transfer.java
@@ -0,0 +1,57 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.internal.Converter;
+import org.eclipse.swt.internal.gtk.OS;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * The class <code>Transfer</code> provides a mechanism for converting a Java object to a
+ * platform specific format that can be passed around in a Drag and Drop operation and vice versa.
+ *
+ * <p>You should only need to become familiar with this class if you are implementing
+ * a Transfer subclass and you are unable to subclass the ByteArrayTransfer class.</p>
+ */
+public abstract class Transfer {
+/**
+ * Returns a list of the data types that can be transferred using this Transfer agent.
+ *
+ * <p>Only the data type fields of the TransferData Object are filled in.</p>
+ *
+ * @return a list of the data types that can be transferred using this Transfer agent
+ */
+abstract public TransferData[] getSupportedTypes();
+/**
+ * Returns true if the transferData data type can be transferred using this Transfer agent.
+ *
+ * @param transferData a platform specific description of a data type; only the data type fields
+ * of the TransferData Object need to be filled in
+ *
+ * @return true if the transferData data type can be transferred using this Transfer agent
+ */
+abstract public boolean isSupportedType(TransferData transferData);
+abstract protected String[] getTypeNames();
+abstract protected int[] getTypeIds();
+abstract protected void javaToNative (Object object, TransferData transferData);
+abstract protected Object nativeToJava(TransferData transferData);
+/**
+ * Registers a name for a data type and returns the associated unique identifier.
+ *
+ * <p>You may register the same type more than once, the same unique identifier will be returned if the
+ * type has been previously registered.</p>
+ *
+ * <p>Note: Do <b>not</b> call this method with pre-defined Clipboard Format types such as CF_TEXT
+ * or CF_BITMAP because the pre-defined value will not be returned</p>
+ *
+ * @param formatName the name of a data type
+ *
+ * @return the unique identifier associated with htis data type
+ */
+public static int registerType(String formatName){
+ return 0;
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TransferData.java
new file mode 100644
index 0000000000..bade8baef0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TransferData.java
@@ -0,0 +1,35 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+/**
+ * The <code>TransferData</code> class is a platform specific data structure for describing the type and the
+ * contents of data being transferred in a Drag and Drop operation.
+ *
+ * <p>As an application writer, you do not need to know anything about the specifics of TransferData. You
+ * should just pass the TransferData instances to subclass of Transfer and let the Transfer objects deal
+ * with the platform specific issues. You can ask a Transfer subclass if it can handle this data by calling
+ * TextTransfer.isSupportedType(transferData). You can get a list of the types of TransferData supported by a
+ * Transfer object by calling TextTransfer.getSupportedTypes().</p>
+ *
+ * <p>You should only need to become familiar with the fields in this class if you are implementing
+ * a Transfer subclass and you are unable to subclass the ByteArrayTransfer class.</p>
+ */
+public class TransferData {
+ /**
+ * Data Type - a pre-defined clipboard format <b>or</b> the unique identifier of a user defined format
+ * (Warning: This field is platform dependent)
+ */
+ public int type;
+
+ // attributes specific to set/get
+ int length;
+ int format;
+ int pValue;
+
+ int result;
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TreeDragUnderEffect.java
new file mode 100644
index 0000000000..54ff723827
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk1x/org/eclipse/swt/dnd/TreeDragUnderEffect.java
@@ -0,0 +1,92 @@
+package org.eclipse.swt.dnd;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+
+class TreeDragUnderEffect extends DragUnderEffect {
+
+ private Tree tree;
+ private TreeItem currentItem = null;
+ private int currentEffect = DND.FEEDBACK_NONE;
+ private TreeItem[] selection = new TreeItem[0];
+
+TreeDragUnderEffect(Tree tree) {
+ this.tree = tree;
+}
+void show(int effect, int x, int y) {
+ TreeItem item = null;
+ if (effect != DND.FEEDBACK_NONE) item = findItem(x, y);
+ if (item == null) effect = DND.FEEDBACK_NONE;
+ if (currentEffect != effect && currentEffect == DND.FEEDBACK_NONE) {
+ selection = tree.getSelection();
+ tree.setSelection(new TreeItem[0]);
+ }
+ boolean restoreSelection = currentEffect != effect && effect == DND.FEEDBACK_NONE;
+ setDragUnderEffect(effect, item);
+ if (restoreSelection) {
+ tree.setSelection(selection);
+ selection = new TreeItem[0];
+ }
+}
+private TreeItem findItem(int x , int y){
+ Point coordinates = new Point(x, y);
+ coordinates = tree.toControl(coordinates);
+ return tree.getItem(coordinates);
+}
+private void setDragUnderEffect(int effect, TreeItem item) {
+ switch (effect) {
+ case DND.FEEDBACK_SELECT:
+ if (currentEffect == DND.FEEDBACK_INSERT_AFTER ||
+ currentEffect == DND.FEEDBACK_INSERT_BEFORE) {
+ setInsertMark(null, false);
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ }
+ if (currentEffect != effect || currentItem != item) {
+ setDropSelection(item);
+ currentEffect = DND.FEEDBACK_SELECT;
+ currentItem = item;
+ }
+ break;
+ case DND.FEEDBACK_INSERT_AFTER:
+ case DND.FEEDBACK_INSERT_BEFORE:
+ if (currentEffect == DND.FEEDBACK_SELECT) {
+ setDropSelection(null);
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ }
+ if (currentEffect != effect || currentItem != item) {
+ setInsertMark(item, effect == DND.FEEDBACK_INSERT_AFTER);
+ currentEffect = effect;
+ currentItem = item;
+ }
+ break;
+ default :
+ if (currentEffect == DND.FEEDBACK_INSERT_AFTER ||
+ currentEffect == DND.FEEDBACK_INSERT_BEFORE) {
+ setInsertMark(null, false);
+ }
+ if (currentEffect == DND.FEEDBACK_SELECT) {
+ setDropSelection(null);
+ }
+ currentEffect = DND.FEEDBACK_NONE;
+ currentItem = null;
+ break;
+ }
+}
+private void setDropSelection (TreeItem item) {
+ if (item == null) {
+ tree.setSelection(new TreeItem[0]);
+ } else {
+ tree.setSelection(new TreeItem[]{item});
+ }
+}
+private void setInsertMark (TreeItem item, boolean after) {
+ // not currently implemented
+}
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/about.html b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/about.html
new file mode 100644
index 0000000000..ee4dc992b5
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/about.html
@@ -0,0 +1,59 @@
+<html>
+<head>
+<title>About</title>
+<style type="text/css">
+p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt}
+pre { font-family: "Courier New", Courier, mono; font-size: 10pt}
+h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}
+code { font-family: "Courier New", Courier, mono; font-size: 10pt}
+sup { font-family: arial,helvetica,geneva; font-size: 10px}
+h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}
+li { font-family: arial, helvetica, geneva; font-size: 10pt}
+h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}
+body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect( ); margin-top: 5mm; margin-left: 3mm}
+</style>
+</head>
+<body>
+<body lang=EN-US link=blue vlink=purple>
+<table border=0 cellspacing=5 cellpadding=2 width="100%" >
+ <tr>
+ <td align=LEFT valign=TOP colspan="2" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">About This Plug-in Sub-directory</font></b></td>
+ </tr>
+ <tr>
+ <td>
+<p>4th December, 2001</p>
+<h3>License</h3>
+<p>All content in this plug-in sub-directory ("Content") is made available by Eclipse.org under the following terms and conditions:</p>
+
+<p>The following two files shall be defined as the SWT:</p>
+<ul>
+ <li>libswt-linux-2018.so</li>
+ <li>swt.jar</li>
+</ul>
+
+<p>A. The SWT is licensed to you under the terms and conditions of the <a href="http://www.eclipse.org/legal/cpl-v05.html">Common Public License Version 0.5</a> ("CPL").
+For the purposes of the CPL the term "Program" shall mean the SWT.</p>
+
+<p>B. All other files contained in this sub-directory shall be defined as the GTK+ Binding. The GTK+ Binding contains portions of GTK+ ("Library"). GTK+ is made available
+by The Free Software Foundation. Use of the Library is governed by the terms and conditions of the
+<a href="http://www.gnu.org/licenses/lgpl.html">GNU Lesser General Public License Version 2.1</a> ("LGPL"). Use of the GTK+ Binding on a standalone basis, is also governed
+by the terms and conditions of the LGPL. A copy of the LGPL is provided with the Content.</p>
+
+<p>C. In accordance with Section 6 of the LGPL, you may combine or link a "work that uses the Library" (e.g. the SWT) with the Library to produce a work
+containing portions of the Library (e.g. the GTK+ Binding) and distribute that work under the terms of your choice (e.g. the CPL) provided you comply with all
+other terms and conditions of Section 6 as well as other Sections of the LGPL. Please note, if you modify the GTK+ Binding such modifications shall be
+governed by the terms and conditions of the LGPL. Also note, the terms of the CPL permit you to modify the combined work and the source code of the combined
+work is provided for debugging purposes so there is no need to reverse engineer the combined work.</p>
+
+<p>If you wish to provide Contributions related to the SWT, such Contributions shall be made under the terms of the CPL. If you wish to make
+Contributions related to the GTK+ Binding such Contributions shall be made under the terms of the LGPL and the CPL (with respect to portions
+of the contribution for which you are the copyright holder).</p>
+</td></tr></table>
+</body>
+</html>
+
+
+
+
+
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/cpl-v05.html b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/cpl-v05.html
new file mode 100644
index 0000000000..800c7797bd
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/cpl-v05.html
@@ -0,0 +1,239 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!-- saved from url=(0041)http://www.eclipse.org/legal/cpl-v05.html -->
+<HTML><HEAD><TITLE>Common Public License Version 0.5</TITLE>
+<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
+<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
+<BODY bgColor=#ffffff>
+<DIV align=center>
+<P>
+<TABLE border=0 cellPadding=10 cellSpacing=10 width="90%">
+ <TBODY>
+ <TR>
+ <TD vAlign=top width="75%"><FONT face="Arial, Helvetica, sans serif"
+ size=3>
+ <H1>Common Public License Version 0.5</H1><TT>
+ <P><FONT face="Courier New, Courier, mono">THE ACCOMPANYING PROGRAM IS
+ PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY
+ USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S
+ ACCEPTANCE OF THIS AGREEMENT. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><B>1. DEFINITIONS
+ </B></FONT></P>
+ <P><FONT face="Courier New, Courier, mono">"Contribution"
+means:</FONT></P>
+ <BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">a) in the case of the initial
+ Contributor, the initial code and documentation distributed under this
+ Agreement, and </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">b) in the case of each
+ subsequent Contributor:</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">i) changes to the Program,
+ and</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">ii) additions to the
+ Program;</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">where such changes and/or
+ additions to the Program originate from and are distributed by that
+ particular Contributor. A Contribution 'originates' from a Contributor
+ if it was added to the Program by such Contributor itself or anyone
+ acting on such Contributor's behalf. Contributions do not include
+ additions to the Program which: (i) are separate modules of software
+ distributed in conjunction with the Program under their own license
+ agreement, and (ii) are not derivative works of the
+ Program.</FONT></P></BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">"Contributor" means any person
+ or entity that distributes the Program. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">"Licensed Patents " mean patent
+ claims licensable by a Contributor which are necessarily infringed by the
+ use or sale of its Contribution alone or when combined with the
+ Program.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">"Program" means the
+ Contributions distributed in accordance with this Agreement. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">"Recipient" means anyone who
+ receives the Program under this Agreement, including all Contributors.
+ </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><B>2. GRANT OF
+ RIGHTS</B></FONT></P>
+ <BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">a) Subject to the terms of
+ this Agreement, each Contributor hereby grants Recipient a
+ non-exclusive, worldwide, royalty-free copyright license to reproduce,
+ prepare derivative works of, publicly display, publicly perform,
+ distribute and sublicense the Contribution of such Contributor, if any,
+ and such derivative works, in source code and object code
+ form.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">b) Subject to the terms of
+ this Agreement, each Contributor hereby grants Recipient a
+ non-exclusive, worldwide, royalty-free patent license under Licensed
+ Patents to make, use, sell, offer to sell, import and otherwise transfer
+ the Contribution of such Contributor, if any, in source code and object
+ code form. This patent license shall apply to the combination of the
+ Contribution and the Program if, at the time the Contribution is added
+ by the Contributor, such addition of the Contribution causes such
+ combination to be covered by the Licensed Patents. The patent license
+ shall not apply to any other combinations which include the
+ Contribution. No hardware per se is licensed hereunder.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">c) Recipient understands that
+ although each Contributor grants the licenses to its Contributions set
+ forth herein, no assurances are provided by any Contributor that the
+ Program does not infringe the patent or other intellectual property
+ rights of any other entity. Each Contributor disclaims any liability to
+ Recipient for claims brought by any other entity based on infringement
+ of intellectual property rights or otherwise. As a condition to
+ exercising the rights and licenses granted hereunder, each Recipient
+ hereby assumes sole responsibility to secure any other intellectual
+ property rights needed, if any. For example, if a third party patent
+ license is required to allow Recipient to distribute the Program, it is
+ Recipient's responsibility to acquire that license before distributing
+ the Program.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">d) Each Contributor
+ represents that to its knowledge it has sufficient copyright rights in
+ its Contribution, if any, to grant the copyright license set forth in
+ this Agreement.</FONT></P></BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono"><STRONG>3.
+ REQUIREMENTS</STRONG> </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">A Contributor may choose to
+ distribute the Program in object code form under its own license
+ agreement, provided that: </FONT></P>
+ <BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">a) it complies with the terms
+ and conditions of this Agreement; and</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">b) its license
+ agreement:</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">i) effectively disclaims on
+ behalf of all Contributors all warranties and conditions, express and
+ implied, including warranties or conditions of title and
+ non-infringement, and implied warranties or conditions of
+ merchantability and fitness for a particular purpose; </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">ii) effectively excludes on
+ behalf of all Contributors all liability for damages, including direct,
+ indirect, special, incidental and consequential damages, such as lost
+ profits; </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">iii) states that any
+ provisions which differ from this Agreement are offered by that
+ Contributor alone and not by any other party; and </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">iv) states that source code
+ for the Program is available from such Contributor, and informs
+ licensees how to obtain it in a reasonable manner on or through a medium
+ customarily used for software exchange. </FONT></P></BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">When the Program is made
+ available in source code form:</FONT></P>
+ <BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">a) it must be made available
+ under this Agreement; and</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">b) a copy of this Agreement
+ must be included with each copy of the Program. </FONT></P></BLOCKQUOTE>
+ <P><FONT face="Courier New, Courier, mono">Contributors may not remove or
+ alter any copyright notices contained within the Program.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">Each Contributor must identify
+ itself as the originator of its Contribution, if any, in a manner that
+ reasonably allows subsequent Recipients to identify the originator of the
+ Contribution. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><STRONG>4. COMMERCIAL
+ DISTRIBUTION</STRONG> </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">Commercial distributors of
+ software may accept certain responsibilities with respect to end users,
+ business partners and the like. While this license is intended to
+ facilitate the commercial use of the Program, the Contributor who includes
+ the Program in a commercial product offering should do so in a manner
+ which does not create potential liability for other Contributors.
+ Therefore, if a Contributor includes the Program in a commercial product
+ offering, such Contributor ("Commercial Contributor") hereby agrees to
+ defend and indemnify every other Contributor ("Indemnified Contributor")
+ against any losses, damages and costs (collectively "Losses") arising from
+ claims, lawsuits and other legal actions brought by a third party against
+ the Indemnified Contributor to the extent caused by the acts or omissions
+ of such Commercial Contributor in connection with its distribution of the
+ Program in a commercial product offering. The obligations in this section
+ do not apply to any claims or Losses relating to any actual or alleged
+ intellectual property infringement. In order to qualify, an Indemnified
+ Contributor must: a) promptly notify the Commercial Contributor in writing
+ of such claim, and b) allow the Commercial Contributor to control, and
+ cooperate with the Commercial Contributor in, the defense and any related
+ settlement negotiations. The Indemnified Contributor may participate in
+ any such claim at its own expense. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">For example, a Contributor
+ might include the Program in a commercial product offering, Product X.
+ That Contributor is then a Commercial Contributor. If that Commercial
+ Contributor then makes performance claims, or offers warranties related to
+ Product X, those performance claims and warranties are such Commercial
+ Contributor's responsibility alone. Under this section, the Commercial
+ Contributor would have to defend claims against the other Contributors
+ related to those performance claims and warranties, and if a court
+ requires any other Contributor to pay any damages as a result, the
+ Commercial Contributor must pay those damages. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><STRONG>5. NO
+ WARRANTY</STRONG></FONT></P>
+ <P><FONT face="Courier New, Courier, mono">EXCEPT AS EXPRESSLY SET FORTH
+ IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
+ WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
+ NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+ Each Recipient is solely responsible for determining the appropriateness
+ of using and distributing the Program and assumes all risks associated
+ with its exercise of rights under this Agreement, including but not
+ limited to the risks and costs of program errors, compliance with
+ applicable laws, damage to or loss of data, programs or equipment, and
+ unavailability or interruption of operations. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><STRONG>6. DISCLAIMER OF
+ LIABILITY </STRONG></FONT></P>
+ <P><FONT face="Courier New, Courier, mono">EXCEPT AS EXPRESSLY SET FORTH
+ IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY
+ LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY
+ RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono"><STRONG>7.
+ GENERAL</STRONG></FONT></P>
+ <P><FONT face="Courier New, Courier, mono">If any provision of this
+ Agreement is invalid or unenforceable under applicable law, it shall not
+ affect the validity or enforceability of the remainder of the terms of
+ this Agreement, and without further action by the parties hereto, such
+ provision shall be reformed to the minimum extent necessary to make such
+ provision valid and enforceable. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">If Recipient institutes patent
+ litigation against a Contributor with respect to a patent applicable to
+ software (including a cross-claim or counterclaim in a lawsuit), then any
+ patent licenses granted by that Contributor to such Recipient under this
+ Agreement shall terminate as of the date such litigation is filed. In
+ addition, If Recipient institutes patent litigation against any entity
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the
+ Program itself (excluding combinations of the Program with other software
+ or hardware) infringes such Recipient's patent(s), then such Recipient's
+ rights granted under Section 2(b) shall terminate as of the date such
+ litigation is filed.</FONT></P>
+ <P><FONT face="Courier New, Courier, mono">All Recipient's rights under
+ this Agreement shall terminate if it fails to comply with any of the
+ material terms or conditions of this Agreement and does not cure such
+ failure in a reasonable period of time after becoming aware of such
+ noncompliance. If all Recipient's rights under this Agreement terminate,
+ Recipient agrees to cease use and distribution of the Program as soon as
+ reasonably practicable. However, Recipient's obligations under this
+ Agreement and any licenses granted by Recipient relating to the Program
+ shall continue and survive. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">Everyone is permitted to copy
+ and distribute copies of this Agreement, but in order to avoid
+ inconsistency the Agreement is copyrighted and may only be modified in the
+ following manner. The Agreement Steward reserves the right to publish new
+ versions (including revisions) of this Agreement from time to time. No one
+ other than the Agreement Steward has the right to modify this Agreement.
+ IBM is the initial Agreement Steward. IBM may assign the responsibility to
+ serve as the Agreement Steward to a suitable separate entity. Each new
+ version of the Agreement will be given a distinguishing version number.
+ The Program (including Contributions) may always be distributed subject to
+ the version of the Agreement under which it was received. In addition,
+ after a new version of the Agreement is published, Contributor may elect
+ to distribute the Program (including its Contributions) under the new
+ version. Except as expressly stated in Sections 2(a) and 2(b) above,
+ Recipient receives no rights or licenses to the intellectual property of
+ any Contributor under this Agreement, whether expressly, by implication,
+ estoppel or otherwise. All rights in the Program not expressly granted
+ under this Agreement are reserved. </FONT></P>
+ <P><FONT face="Courier New, Courier, mono">This Agreement is governed by
+ the laws of the State of New York and the intellectual property laws of
+ the United States of America. No party to this Agreement will bring a
+ legal action under this Agreement more than one year after the cause of
+ action arose. Each party waives its rights to a jury trial in any
+ resulting litigation.</FONT></P></TT></FONT></TD></TR></TBODY></TABLE>
+<P></P></DIV></BODY></HTML>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/lgpl-v21.txt b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/lgpl-v21.txt
new file mode 100644
index 0000000000..3f50d0454c
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/lgpl-v21.txt
@@ -0,0 +1,506 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.csh b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.csh
new file mode 100644
index 0000000000..05e11d1cf7
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.csh
@@ -0,0 +1,29 @@
+#!/bin/csh
+
+# Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+#
+# The contents of this file are made available under the terms
+# of the GNU Lesser General Public License (LGPL) Version 2.1 that
+# accompanies this distribution (lgpl-v21.txt). The LGPL is also
+# available at http://www.gnu.org/licenses/lgpl.html. If the version
+# of the LGPL at http://www.gnu.org is different to the version of
+# the LGPL accompanying this distribution and there is any conflict
+# between the two license versions, the terms of the LGPL accompanying
+# this distribution shall govern.
+
+# Some UNIX/Linux compilers don't like <CR>'s in files (DOS format).
+set fixup_files = `grep -l "\ " *.[ch]`
+if ( "$fixup_files" != "" ) then
+ echo "Converting files from DOS to UNIX format:"
+ foreach file ($fixup_files)
+ echo " $file"
+ ex $file << EOF >& /dev/null
+g/ \$/s///
+w
+EOF
+ end
+endif
+
+# Determine the operating system being built
+
+make -f make_gtk.mak $1 $2 $3 $4
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_gtk.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_gtk.mak
new file mode 100644
index 0000000000..b2f9488a18
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_gtk.mak
@@ -0,0 +1,132 @@
+# Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+#
+# The contents of this file are made available under the terms
+# of the GNU Lesser General Public License (LGPL) Version 2.1 that
+# accompanies this distribution (lgpl-v21.txt). The LGPL is also
+# available at http://www.gnu.org/licenses/lgpl.html. If the version
+# of the LGPL at http://www.gnu.org is different to the version of
+# the LGPL accompanying this distribution and there is any conflict
+# between the two license versions, the terms of the LGPL accompanying
+# this distribution shall govern.
+#
+# Makefile for creating SWT libraries on Linux
+
+include make_common.mak
+
+SWT_VERSION=$(maj_ver)$(min_ver)
+
+
+# Define the installation directories for various products.
+# Your system may have these in a different place.
+# IVE_HOME - IBM's version of Java (J9)
+IVE_HOME = /bluebird/teamswt/swt-builddir/ive
+#IVE_HOME = /opt/IBMvame1.4/ive
+
+JAVA_JNI=$(IVE_HOME)/bin/include
+JAVAH=$(IVE_HOME)/bin/javah
+LD_LIBRARY_PATH=$(IVE_HOME)/bin
+
+# Define the various DLL (shared) libraries to be made.
+
+SWT_PREFIX = swt
+OS_PREFIX = linux
+SWT_DLL = lib$(SWT_PREFIX)-$(OS_PREFIX)-$(SWT_VERSION).so
+SWTPI_DLL = lib$(SWT_PREFIX)-pi-$(OS_PREFIX)-$(SWT_VERSION).so
+
+GNOME_PREFIX = swt-gnome
+GNOME_DLL = lib$(GNOME_PREFIX)-$(OS_PREFIX)-$(SWT_VERSION).so
+GNOME_LIB = -x -shared \
+ -L/usr/lib \
+ -lgnome -lglib \
+ -lm -ldl
+
+PIXBUF_PREFIX = swt-pixbuf
+PIXBUF_DLL = lib$(PIXBUF_PREFIX)-$(OS_PREFIX)-$(SWT_VERSION).so
+
+
+#
+# Target Rules
+#
+
+all: make_swt make_pixbuf # make_gnome
+
+make_swt: $(SWT_DLL) $(SWTPI_DLL)
+
+#make_gnome: $(GNOME_DLL)
+
+make_pixbuf: $(PIXBUF_DLL)
+
+
+# All about Linking
+
+$(SWT_DLL): callback.o
+ ld -x -shared \
+ -o $(SWT_DLL) callback.o
+
+# Note: your setup may be different. Consult `gtk-config --libs`
+$(SWTPI_DLL): swt.o structs.o
+ ld -x -shared \
+ -L/usr/lib -L/usr/X11R6/lib \
+ -lgtk -lgdk -lgmodule -lglib \
+ -ldl -lXi -lXext -lX11 -lm -lc \
+ -o $(SWTPI_DLL) swt.o structs.o
+
+#$(GNOME_DLL): gnome.o
+# ld -o $@ gnome.o $(GNOME_LIB)
+
+$(PIXBUF_DLL): pixbuf.o
+ ld -x -shared \
+ -L/usr/lib -L/usr/X11R6/lib \
+ -lgdk_pixbuf \
+ -lgtk -lgdk -lgmodule -lglib \
+ -ldl -lXi -lXext -lX11 -lm -lc \
+ -o $(PIXBUF_DLL) pixbuf.o
+
+
+# All about Compiling
+
+SWT_C_FLAGS = -c -O -s \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ -DLINUX -DGTK \
+ -fpic \
+ -I$(JAVA_JNI) \
+ `gtk-config --cflags`
+
+SWT_PIXBUF_FLAGS = -c -O -s \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ -DLINUX -DGTK \
+ -fpic \
+ -I$(JAVA_JNI) \
+ -I/usr/include/gdk-pixbuf \
+ `gtk-config --cflags`
+
+SWT_GNOME_FLAGS = -c -O -s \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ -DLINUX -DGTK \
+ -fpic \
+ -I$(JAVA_JNI) \
+ `gnome-config --cflags gnome`
+
+swt.o: swt.c swt.h
+ gcc $(SWT_C_FLAGS) swt.c
+
+structs.o: structs.c
+ gcc $(SWT_C_FLAGS) structs.c
+
+callback.o: callback.c
+ gcc $(SWT_C_FLAGS) callback.c
+
+globals.o: globals.c
+ gcc $(SWT_C_FLAGS) globals.c
+
+library.o: library.c
+ gcc $(SWT_C_FLAGS) library.c
+
+pixbuf.o: pixbuf.c
+ gcc $(SWT_PIXBUF_FLAGS) pixbuf.c
+
+#gnome.o: gnome.c
+# gcc $(SWT_GNOME_FLAGS) gnome.c
+
+clean:
+ rm -f *.o *.so
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/pixbuf.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/pixbuf.c
new file mode 100644
index 0000000000..f624fe3577
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/pixbuf.c
@@ -0,0 +1,235 @@
+/*
+ * Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+ *
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ */
+
+#include "swt.h"
+#include <gtk/gtk.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_colorspace
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1colorspace
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_colorspace((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_n_channels
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1n_1channels
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_n_channels((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_has_alpha
+ * Signature: (I)Z
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1has_1alpha
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jboolean) gdk_pixbuf_get_has_alpha((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_bits_per_sample
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1bits_1per_1sample
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_bits_per_sample((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_pixels
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1pixels
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_pixels((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_width
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1width
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_width((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_height
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1height
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_height((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_rowstride
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1rowstride
+ (JNIEnv *env, jclass cl, jint pixbuf)
+{
+ return (jint) gdk_pixbuf_get_rowstride((GdkPixbuf*)pixbuf);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_new
+ * Signature: (IZIII)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1new
+ (JNIEnv *env, jclass cl,
+ jint colorspace,
+ jboolean hasAlpha,
+ jint bpc,
+ jint width, jint height)
+{
+ return (jint) gdk_pixbuf_new (
+ colorspace,
+ (gboolean) hasAlpha,
+ bpc,
+ width, height
+ );
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_copy
+ * Signature: (I)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1copy
+ (JNIEnv *env, jclass cl, jint source) {
+ return (jint)gdk_pixbuf_copy ((GdkPixbuf*) source);
+}
+
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_render_to_drawable
+ * Signature: (IIIIIIIIIIII)V
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1render_1to_1drawable
+ (JNIEnv *env, jclass cl,
+ jint pixbuf,
+ jint drawable,
+ jint gc,
+ jint src_x, jint src_y,
+ jint dest_x, jint dest_y,
+ jint width, jint height,
+ jint dithering,
+ jint x_dither, jint y_dither) {
+ gdk_pixbuf_render_to_drawable (
+ (GdkPixbuf*) pixbuf,
+ (GdkDrawable*) drawable,
+ (GdkGC*) gc,
+ src_x, src_y,
+ dest_x, dest_y,
+ width, height,
+ dithering,
+ x_dither, y_dither
+ );
+}
+
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_render_to_drawable_alpha
+ * Signature: (IIIIIIIIIIIII)V
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1render_1to_1drawable_1alpha
+ (JNIEnv *env, jclass cl,
+ jint pixbuf,
+ jint drawable,
+ jint src_x, jint src_y, jint dest_x, jint dest_y,
+ jint width, jint height,
+ jint alphaMode,
+ jint alphaThreshold,
+ jint dithering,
+ jint x_dither, jint y_dither)
+{
+ gdk_pixbuf_render_to_drawable_alpha (
+ (GdkPixbuf*) pixbuf,
+ (GdkDrawable*) drawable,
+ src_x, src_y,
+ dest_x, dest_y,
+ width, height,
+ alphaMode,
+ alphaThreshold,
+ dithering,
+ x_dither, y_dither
+ );
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_scale
+ * Signature: (IIIIIIDDDDI)V
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1scale
+ (JNIEnv *env, jclass cl,
+ jint source, jint dest,
+ jint dest_x, jint dest_y,
+ jint dest_width, jint dest_height,
+ jdouble offset_x, jdouble offset_y,
+ jdouble scale_x, jdouble scale_y,
+ jint interp_type) {
+ gdk_pixbuf_scale ((GdkPixbuf*)source, (GdkPixbuf*)dest,
+ dest_x, dest_y,
+ dest_width, dest_height,
+ offset_x, offset_y,
+ scale_x, scale_y,
+ interp_type
+ );
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_GDKPIXBUF
+ * Method: gdk_pixbuf_get_from_drawable
+ * Signature: (IIIIIIIII)I
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_GDKPIXBUF_gdk_1pixbuf_1get_1from_1drawable
+ (JNIEnv *env, jclass cl,
+ jint dest, jint src, jint cmap,
+ jint src_x, jint src_y,
+ jint dest_x, jint dest_y,
+ jint width, jint height)
+{
+ gdk_pixbuf_get_from_drawable (
+ (GdkPixbuf*) dest,
+ (GdkDrawable*) src,
+ (GdkColormap*) cmap,
+ src_x, src_y,
+ dest_x, dest_y,
+ width, height);
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.c
new file mode 100644
index 0000000000..db094ff932
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.c
@@ -0,0 +1,2663 @@
+/*
+ * Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+ *
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ */
+
+/**
+ * JNI SWT object field getters and setters declarations for Windows structs
+ */
+
+#include "swt.h"
+#include "structs.h"
+
+/* Globals */
+GdkColor_FID_CACHE GdkColorFc;
+GdkEventKey_FID_CACHE GdkEventKeyFc;
+GdkEventButton_FID_CACHE GdkEventButtonFc;
+GdkEventMotion_FID_CACHE GdkEventMotionFc;
+GdkEventExpose_FID_CACHE GdkEventExposeFc;
+GdkFont_FID_CACHE GdkFontFc;
+GdkGCValues_FID_CACHE GdkGCValuesFc;
+GdkImage_FID_CACHE GdkImageFc;
+GdkPoint_FID_CACHE GdkPointFc;
+GdkRectangle_FID_CACHE GdkRectangleFc;
+GdkVisual_FID_CACHE GdkVisualFc;
+GtkObject_FID_CACHE GtkObjectFc;
+GtkData_FID_CACHE GtkDataFc;
+GtkAdjustment_FID_CACHE GtkAdjustmentFc;
+GtkAllocation_FID_CACHE GtkAllocationFc;
+GtkWidget_FID_CACHE GtkWidgetFc;
+GtkContainer_FID_CACHE GtkContainerFc;
+GtkBin_FID_CACHE GtkBinFc;
+GtkMenu_FID_CACHE GtkMenuFc;
+GtkItem_FID_CACHE GtkItemFc;
+GtkMenuShell_FID_CACHE GtkMenuShellFc;
+GtkMenuItem_FID_CACHE GtkMenuItemFc;
+GtkCheckMenuItem_FID_CACHE GtkCheckMenuItemFc;
+GtkWindow_FID_CACHE GtkWindowFc;
+GtkColorSelectionDialog_FID_CACHE GtkColorSelectionDialogFc;\
+GtkBox_FID_CACHE GtkBoxFc;
+GtkHBox_FID_CACHE GtkHBoxFc;
+GtkCombo_FID_CACHE GtkComboFc;
+GtkFileSelection_FID_CACHE GtkFileSelectionFc;
+GtkFrame_FID_CACHE GtkFrameFc;
+GtkFontSelectionDialog_FID_CACHE GtkFontSelectionDialogFc;
+GtkCList_FID_CACHE GtkCListFc;
+GtkEditable_FID_CACHE GtkEditableFc;
+GtkText_FID_CACHE GtkTextFc;
+GtkProgress_FID_CACHE GtkProgressFc;
+GtkProgressBar_FID_CACHE GtkProgressBarFc;
+GtkArg_FID_CACHE GtkArgFc;
+GtkRequisition_FID_CACHE GtkRequisitionFc;
+GtkStyle_FID_CACHE GtkStyleFc;
+GtkStyleClass_FID_CACHE GtkStyleClassFc;
+GtkCListRow_FID_CACHE GtkCListRowFc;
+GtkCListColumn_FID_CACHE GtkCListColumnFc;
+GtkCTreeRow_FID_CACHE GtkCTreeRowFc;
+GtkCTree_FID_CACHE GtkCTreeFc;
+
+/* ----------- fid and class caches ----------- */
+/*
+ * Used for Java objects passed into JNI that are
+ * declared like:
+ *
+ * nativeFunction (Rectangle p1, Rectangle p2, Rectangle p3)
+ *
+ * and not like this
+ *
+ * nativeFunction (Object p1, Object p2, Object p3)
+ *
+ *
+ */
+void cacheGdkColorFids(JNIEnv *env, jobject lpGdkColor, PGdkColor_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkColorClass = (*env)->GetObjectClass(env, lpGdkColor);
+
+ lpCache->pixel = (*env)->GetFieldID(env, lpCache->GdkColorClass, "pixel", "I");
+ lpCache->red = (*env)->GetFieldID(env, lpCache->GdkColorClass, "red", "S");
+ lpCache->green = (*env)->GetFieldID(env, lpCache->GdkColorClass, "green", "S");
+ lpCache->blue = (*env)->GetFieldID(env, lpCache->GdkColorClass, "blue", "S");
+ lpCache->cached = 1;
+};
+
+void cacheGdkEventKeyFids(JNIEnv *env, jobject lpGdkEventKey, PGdkEventKey_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkEventKeyClass = (*env)->GetObjectClass(env, lpGdkEventKey);
+
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "type", "I");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "window", "I");
+ lpCache->send_event = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "send_event", "B");
+ lpCache->time = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "time", "I");
+ lpCache->state = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "state", "I");
+ lpCache->keyval = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "keyval", "I");
+ lpCache->length = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "length", "I");
+ lpCache->string = (*env)->GetFieldID(env, lpCache->GdkEventKeyClass, "string", "I");
+ lpCache->cached = 1;
+};
+
+void cacheGdkEventButtonFids(JNIEnv *env, jobject lpGdkEventButton, PGdkEventButton_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkEventButtonClass = (*env)->GetObjectClass(env, lpGdkEventButton);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "type", "I");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "window", "I");
+ lpCache->send_event = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "send_event", "B");
+ lpCache->time = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "time", "I");
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "x", "J");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "y", "J");
+ lpCache->pressure = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "pressure", "J");
+ lpCache->xtilt = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "xtilt", "J");
+ lpCache->ytilt = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "ytilt", "J");
+ lpCache->state = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "state", "I");
+ lpCache->button = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "button", "I");
+ lpCache->source = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "source", "I");
+ lpCache->deviceid = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "deviceid", "I");
+ lpCache->x_root = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "x_root", "J");
+ lpCache->y_root = (*env)->GetFieldID(env, lpCache->GdkEventButtonClass, "y_root", "J");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkEventMotionFids(JNIEnv *env, jobject lpGdkEventMotion, PGdkEventMotion_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkEventMotionClass = (*env)->GetObjectClass(env, lpGdkEventMotion);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "type", "I");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "window", "I");
+ lpCache->send_event = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "send_event", "B");
+ lpCache->time = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "time", "I");
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "x", "J");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "y", "J");
+ lpCache->pressure = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "pressure", "J");
+ lpCache->xtilt = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "xtilt", "J");
+ lpCache->ytilt = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "ytilt", "J");
+ lpCache->state = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "state", "I");
+ lpCache->is_hint = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "is_hint", "I");
+ lpCache->source = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "source", "I");
+ lpCache->deviceid = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "deviceid", "I");
+ lpCache->x_root = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "x_root", "J");
+ lpCache->y_root = (*env)->GetFieldID(env, lpCache->GdkEventMotionClass, "y_root", "J");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkEventExposeFids(JNIEnv *env, jobject lpGdkEventExpose, PGdkEventExpose_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkEventExposeClass = (*env)->GetObjectClass(env, lpGdkEventExpose);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "type", "I");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "window", "I");
+ lpCache->send_event = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "send_event", "B");
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "x", "S");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "y", "S");
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "width", "S");
+ lpCache->height = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "height", "S");
+ lpCache->count = (*env)->GetFieldID(env, lpCache->GdkEventExposeClass, "count", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkFontFids(JNIEnv *env, jobject lpGdkFont, PGdkFont_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkFontClass = (*env)->GetObjectClass(env, lpGdkFont);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkFontClass, "type", "I");
+ lpCache->ascent = (*env)->GetFieldID(env, lpCache->GdkFontClass, "ascent", "I");
+ lpCache->descent = (*env)->GetFieldID(env, lpCache->GdkFontClass, "descent", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkGCValuesFids(JNIEnv *env, jobject lpGdkGCValues, PGdkGCValues_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkGCValuesClass = (*env)->GetObjectClass(env, lpGdkGCValues);
+
+ lpCache->foreground_pixel = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "foreground_pixel", "I");
+ lpCache->foreground_red = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "foreground_red", "S");
+ lpCache->foreground_green = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "foreground_green", "S");
+ lpCache->foreground_blue = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "foreground_blue", "S");
+ lpCache->background_pixel = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "background_pixel", "I");
+ lpCache->background_red = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "background_red", "S");
+ lpCache->background_green = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "background_green", "S");
+ lpCache->background_blue = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "background_blue", "S");
+ lpCache->font = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "font", "I");
+ lpCache->function = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "function", "I");
+ lpCache->fill = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "fill", "I");
+ lpCache->tile = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "tile", "I");
+ lpCache->stipple = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "stipple", "I");
+ lpCache->clip_mask = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "clip_mask", "I");
+ lpCache->subwindow_mode = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "subwindow_mode", "I");
+ lpCache->ts_x_origin = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "ts_x_origin", "I");
+ lpCache->ts_y_origin = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "ts_y_origin", "I");
+ lpCache->clip_x_origin = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "clip_x_origin", "I");
+ lpCache->clip_y_origin = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "clip_y_origin", "I");
+ lpCache->graphics_exposures = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "graphics_exposures", "I");
+ lpCache->line_width = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "line_width", "I");
+ lpCache->line_style = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "line_style", "I");
+ lpCache->cap_style = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "cap_style", "I");
+ lpCache->join_style = (*env)->GetFieldID(env, lpCache->GdkGCValuesClass, "join_style", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkImageFids(JNIEnv *env, jobject lpGdkImage, PGdkImage_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkImageClass = (*env)->GetObjectClass(env, lpGdkImage);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkImageClass, "type", "I");
+ lpCache->visual = (*env)->GetFieldID(env, lpCache->GdkImageClass, "visual", "I");
+ lpCache->byte_order = (*env)->GetFieldID(env, lpCache->GdkImageClass, "byte_order", "I");
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GdkImageClass, "width", "S");
+ lpCache->height = (*env)->GetFieldID(env, lpCache->GdkImageClass, "height", "S");
+ lpCache->depth = (*env)->GetFieldID(env, lpCache->GdkImageClass, "depth", "S");
+ lpCache->bpp = (*env)->GetFieldID(env, lpCache->GdkImageClass, "bpp", "S");
+ lpCache->bpl = (*env)->GetFieldID(env, lpCache->GdkImageClass, "bpl", "S");
+ lpCache->mem = (*env)->GetFieldID(env, lpCache->GdkImageClass, "mem", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkPointFids(JNIEnv *env, jobject lpGdkPoint, PGdkPoint_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkPointClass = (*env)->GetObjectClass(env, lpGdkPoint);
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GdkPointClass, "x", "S");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GdkPointClass, "y", "S");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkRectangleFids(JNIEnv *env, jobject lpGdkRectangle, PGdkRectangle_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkRectangleClass = (*env)->GetObjectClass(env, lpGdkRectangle);
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GdkRectangleClass, "x", "S");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GdkRectangleClass, "y", "S");
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GdkRectangleClass, "width", "S");
+ lpCache->height = (*env)->GetFieldID(env, lpCache->GdkRectangleClass, "height", "S");
+
+ lpCache->cached = 1;
+};
+
+void cacheGdkVisualFids(JNIEnv *env, jobject lpGdkVisual, PGdkVisual_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GdkVisualClass = (*env)->GetObjectClass(env, lpGdkVisual);
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "type", "I");
+ lpCache->depth = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "depth", "I");
+ lpCache->byte_order = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "byte_order", "I");
+ lpCache->colormap_size = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "colormap_size", "I");
+ lpCache->bits_per_rgb = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "bits_per_rgb", "I");
+ lpCache->red_mask = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "red_mask", "I");
+ lpCache->red_shift = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "red_shift", "I");
+ lpCache->red_prec = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "red_prec", "I");
+ lpCache->green_mask = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "green_mask", "I");
+ lpCache->green_shift = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "green_shift", "I");
+ lpCache->green_prec = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "green_prec", "I");
+ lpCache->blue_mask = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "blue_mask", "I");
+ lpCache->blue_shift = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "blue_shift", "I");
+ lpCache->blue_prec = (*env)->GetFieldID(env, lpCache->GdkVisualClass, "blue_prec", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkAllocationFids(JNIEnv *env, jobject lpGtkAllocation, PGtkAllocation_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkAllocationClass = (*env)->GetObjectClass(env, lpGtkAllocation);
+ lpCache->x = (*env)->GetFieldID(env, lpCache->GtkAllocationClass, "x", "S");
+ lpCache->y = (*env)->GetFieldID(env, lpCache->GtkAllocationClass, "y", "S");
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GtkAllocationClass, "width", "S");
+ lpCache->height = (*env)->GetFieldID(env, lpCache->GtkAllocationClass, "height", "S");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkArgFids(JNIEnv *env, jobject lpGtkArg, PGtkArg_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkArgClass = (*env)->GetObjectClass(env, lpGtkArg);
+
+ fprintf(stderr, "WARNING: Unimplemented method cacheGtkArgFids.\n");
+ lpCache->cached = 1;
+};
+
+void cacheGtkBinFids(JNIEnv *env, jobject lpGtkBin, PGtkBin_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkBinClass = (*env)->GetObjectClass(env, lpGtkBin);
+ cacheGtkContainerFids(env, lpGtkBin, &PGLOB(GtkContainerFc));
+ lpCache->child = (*env)->GetFieldID(env, lpCache->GtkBinClass, "child", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkCListFids(JNIEnv *env, jobject lpGtkCList, PGtkCList_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkCListClass = (*env)->GetObjectClass(env, lpGtkCList);
+ cacheGtkContainerFids(env, lpGtkCList, &PGLOB(GtkContainerFc));
+ lpCache->clist_flags = (*env)->GetFieldID(env, lpCache->GtkCListClass, "clist_flags", "S");
+ lpCache->row_mem_chunk = (*env)->GetFieldID(env, lpCache->GtkCListClass, "row_mem_chunk", "I");
+ lpCache->cell_mem_chunk = (*env)->GetFieldID(env, lpCache->GtkCListClass, "cell_mem_chunk", "I");
+ lpCache->freeze_count = (*env)->GetFieldID(env, lpCache->GtkCListClass, "freeze_count", "I");
+ lpCache->internal_allocation_x = (*env)->GetFieldID(env, lpCache->GtkCListClass, "internal_allocation_x", "S");
+ lpCache->internal_allocation_y = (*env)->GetFieldID(env, lpCache->GtkCListClass, "internal_allocation_y", "S");
+ lpCache->internal_allocation_width = (*env)->GetFieldID(env, lpCache->GtkCListClass, "internal_allocation_width", "S");
+ lpCache->internal_allocation_height = (*env)->GetFieldID(env, lpCache->GtkCListClass, "internal_allocation_height", "S");
+ lpCache->rows = (*env)->GetFieldID(env, lpCache->GtkCListClass, "rows", "I");
+ lpCache->row_center_offset = (*env)->GetFieldID(env, lpCache->GtkCListClass, "row_center_offset", "I");
+ lpCache->row_height = (*env)->GetFieldID(env, lpCache->GtkCListClass, "row_height", "I");
+ lpCache->row_list = (*env)->GetFieldID(env, lpCache->GtkCListClass, "row_list", "I");
+ lpCache->row_list_end = (*env)->GetFieldID(env, lpCache->GtkCListClass, "row_list_end", "I");
+ lpCache->columns = (*env)->GetFieldID(env, lpCache->GtkCListClass, "columns", "I");
+ lpCache->column_title_area_x = (*env)->GetFieldID(env, lpCache->GtkCListClass, "column_title_area_x", "S");
+ lpCache->column_title_area_y = (*env)->GetFieldID(env, lpCache->GtkCListClass, "column_title_area_y", "S");
+ lpCache->column_title_area_width = (*env)->GetFieldID(env, lpCache->GtkCListClass, "column_title_area_width", "S");
+ lpCache->column_title_area_height = (*env)->GetFieldID(env, lpCache->GtkCListClass, "column_title_area_height", "S");
+ lpCache->title_window = (*env)->GetFieldID(env, lpCache->GtkCListClass, "title_window", "I");
+ lpCache->column = (*env)->GetFieldID(env, lpCache->GtkCListClass, "column", "I");
+ lpCache->clist_window = (*env)->GetFieldID(env, lpCache->GtkCListClass, "clist_window", "I");
+ lpCache->clist_window_width = (*env)->GetFieldID(env, lpCache->GtkCListClass, "clist_window_width", "I");
+ lpCache->clist_window_height = (*env)->GetFieldID(env, lpCache->GtkCListClass, "clist_window_height", "I");
+ lpCache->hoffset = (*env)->GetFieldID(env, lpCache->GtkCListClass, "hoffset", "I");
+ lpCache->voffset = (*env)->GetFieldID(env, lpCache->GtkCListClass, "voffset", "I");
+ lpCache->shadow_type = (*env)->GetFieldID(env, lpCache->GtkCListClass, "shadow_type", "I");
+ lpCache->selection_mode = (*env)->GetFieldID(env, lpCache->GtkCListClass, "selection_mode", "I");
+ lpCache->selection = (*env)->GetFieldID(env, lpCache->GtkCListClass, "selection", "I");
+ lpCache->selection_end = (*env)->GetFieldID(env, lpCache->GtkCListClass, "selection_end", "I");
+ lpCache->undo_selection = (*env)->GetFieldID(env, lpCache->GtkCListClass, "undo_selection", "I");
+ lpCache->undo_unselection = (*env)->GetFieldID(env, lpCache->GtkCListClass, "undo_unselection", "I");
+ lpCache->undo_anchor = (*env)->GetFieldID(env, lpCache->GtkCListClass, "undo_anchor", "I");
+ lpCache->button_actions0 = (*env)->GetFieldID(env, lpCache->GtkCListClass, "button_actions0", "B");
+ lpCache->button_actions1 = (*env)->GetFieldID(env, lpCache->GtkCListClass, "button_actions1", "B");
+ lpCache->button_actions2 = (*env)->GetFieldID(env, lpCache->GtkCListClass, "button_actions2", "B");
+ lpCache->button_actions3 = (*env)->GetFieldID(env, lpCache->GtkCListClass, "button_actions3", "B");
+ lpCache->button_actions4 = (*env)->GetFieldID(env, lpCache->GtkCListClass, "button_actions4", "B");
+ lpCache->drag_button = (*env)->GetFieldID(env, lpCache->GtkCListClass, "drag_button", "B");
+ lpCache->click_cell_row = (*env)->GetFieldID(env, lpCache->GtkCListClass, "click_cell_row", "I");
+ lpCache->click_cell_column = (*env)->GetFieldID(env, lpCache->GtkCListClass, "click_cell_column", "I");
+ lpCache->hadjustment = (*env)->GetFieldID(env, lpCache->GtkCListClass, "hadjustment", "I");
+ lpCache->vadjustment = (*env)->GetFieldID(env, lpCache->GtkCListClass, "vadjustment", "I");
+ lpCache->xor_gc = (*env)->GetFieldID(env, lpCache->GtkCListClass, "xor_gc", "I");
+ lpCache->fg_gc = (*env)->GetFieldID(env, lpCache->GtkCListClass, "fg_gc", "I");
+ lpCache->bg_gc = (*env)->GetFieldID(env, lpCache->GtkCListClass, "bg_gc", "I");
+ lpCache->cursor_drag = (*env)->GetFieldID(env, lpCache->GtkCListClass, "cursor_drag", "I");
+ lpCache->x_drag = (*env)->GetFieldID(env, lpCache->GtkCListClass, "x_drag", "I");
+ lpCache->focus_row = (*env)->GetFieldID(env, lpCache->GtkCListClass, "focus_row", "I");
+ lpCache->anchor = (*env)->GetFieldID(env, lpCache->GtkCListClass, "anchor", "I");
+ lpCache->anchor_state = (*env)->GetFieldID(env, lpCache->GtkCListClass, "anchor_state", "I");
+ lpCache->drag_pos = (*env)->GetFieldID(env, lpCache->GtkCListClass, "drag_pos", "I");
+ lpCache->htimer = (*env)->GetFieldID(env, lpCache->GtkCListClass, "htimer", "I");
+ lpCache->vtimer = (*env)->GetFieldID(env, lpCache->GtkCListClass, "vtimer", "I");
+ lpCache->sort_type = (*env)->GetFieldID(env, lpCache->GtkCListClass, "sort_type", "I");
+ lpCache->compare = (*env)->GetFieldID(env, lpCache->GtkCListClass, "compare", "I");
+ lpCache->sort_column = (*env)->GetFieldID(env, lpCache->GtkCListClass, "sort_column", "I");
+
+ lpCache->cached = 1;
+};
+
+
+void cacheGtkColorSelectionDialogFids(JNIEnv *env, jobject lpGtkColorSelectionDialog, PGtkColorSelectionDialog_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkColorSelectionDialogClass = (*env)->GetObjectClass(env, lpGtkColorSelectionDialog);
+ cacheGtkWindowFids(env, lpGtkColorSelectionDialog, &PGLOB(GtkWindowFc));
+ lpCache->colorsel = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "colorsel", "I");
+ lpCache->main_vbox = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "main_vbox", "I");
+ lpCache->ok_button = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "ok_button", "I");
+ lpCache->reset_button = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "reset_button", "I");
+ lpCache->cancel_button = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "cancel_button", "I");
+ lpCache->help_button = (*env)->GetFieldID(env, lpCache->GtkColorSelectionDialogClass, "help_button", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkComboFids(JNIEnv *env, jobject lpGtkCombo, PGtkCombo_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkComboClass = (*env)->GetObjectClass(env, lpGtkCombo);
+ cacheGtkHBoxFids(env, lpGtkCombo, &PGLOB(GtkHBoxFc));
+ lpCache->entry = (*env)->GetFieldID(env, lpCache->GtkComboClass, "entry", "I");
+ lpCache->button = (*env)->GetFieldID(env, lpCache->GtkComboClass, "button", "I");
+ lpCache->popup = (*env)->GetFieldID(env, lpCache->GtkComboClass, "popup", "I");
+ lpCache->popwin = (*env)->GetFieldID(env, lpCache->GtkComboClass, "popwin", "I");
+ lpCache->list = (*env)->GetFieldID(env, lpCache->GtkComboClass, "list", "I");
+ lpCache->entry_change_id = (*env)->GetFieldID(env, lpCache->GtkComboClass, "entry_change_id", "I");
+ lpCache->list_change_id = (*env)->GetFieldID(env, lpCache->GtkComboClass, "list_change_id", "I");
+ lpCache->value_in_list = (*env)->GetFieldID(env, lpCache->GtkComboClass, "value_in_list", "I");
+ lpCache->ok_if_empty = (*env)->GetFieldID(env, lpCache->GtkComboClass, "ok_if_empty", "I");
+ lpCache->case_sensitive = (*env)->GetFieldID(env, lpCache->GtkComboClass, "case_sensitive", "I");
+ lpCache->use_arrows = (*env)->GetFieldID(env, lpCache->GtkComboClass, "use_arrows", "I");
+ lpCache->use_arrows_always = (*env)->GetFieldID(env, lpCache->GtkComboClass, "use_arrows_always", "I");
+ lpCache->current_button = (*env)->GetFieldID(env, lpCache->GtkComboClass, "current_button", "S");
+ lpCache->activate_id = (*env)->GetFieldID(env, lpCache->GtkComboClass, "activate_id", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkContainerFids(JNIEnv *env, jobject lpGtkContainer, PGtkContainer_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkContainerClass = (*env)->GetObjectClass(env, lpGtkContainer);
+ cacheGtkWidgetFids(env, lpGtkContainer, &PGLOB(GtkWidgetFc));
+ lpCache->focus_child = (*env)->GetFieldID(env, lpCache->GtkContainerClass, "focus_child", "I");
+ lpCache->border_width = (*env)->GetFieldID(env, lpCache->GtkContainerClass, "border_width", "I");
+ lpCache->need_resize = (*env)->GetFieldID(env, lpCache->GtkContainerClass, "need_resize", "I");
+ lpCache->resize_mode = (*env)->GetFieldID(env, lpCache->GtkContainerClass, "resize_mode", "I");
+ lpCache->resize_widgets = (*env)->GetFieldID(env, lpCache->GtkContainerClass, "resize_widgets", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkDataFids(JNIEnv *env, jobject lpGtkData, PGtkData_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkDataClass = (*env)->GetObjectClass(env, lpGtkData);
+ cacheGtkObjectFids(env, lpGtkData, &PGLOB(GtkObjectFc));
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkEditableFids(JNIEnv *env, jobject lpGtkEditable, PGtkEditable_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkEditableClass = (*env)->GetObjectClass(env, lpGtkEditable);
+ cacheGtkWidgetFids(env, lpGtkEditable, &PGLOB(GtkWidgetFc));
+ lpCache->current_pos = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "current_pos", "I");
+ lpCache->selection_start_pos = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "selection_start_pos", "I");
+ lpCache->selection_end_pos = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "selection_end_pos", "I");
+ lpCache->has_selection = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "has_selection", "I");
+ lpCache->editable = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "editable", "I");
+ lpCache->visible = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "visible", "I");
+ lpCache->ic = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "ic", "I");
+ lpCache->ic_attr = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "ic_attr", "I");
+ lpCache->clipboard_text = (*env)->GetFieldID(env, lpCache->GtkEditableClass, "clipboard_text", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkTextFids(JNIEnv *env, jobject lpGtkText, PGtkText_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkTextClass = (*env)->GetObjectClass(env, lpGtkText);
+ cacheGtkEditableFids(env, lpGtkText, &PGLOB(GtkEditableFc));
+
+ lpCache->first_line_start_index = (*env)->GetFieldID(env, lpCache->GtkTextClass, "first_line_start_index", "I");
+ lpCache->first_onscreen_hor_pixel = (*env)->GetFieldID(env, lpCache->GtkTextClass, "first_onscreen_hor_pixel", "I");
+ lpCache->first_onscreen_ver_pixel = (*env)->GetFieldID(env, lpCache->GtkTextClass, "first_onscreen_ver_pixel", "I");
+ lpCache->default_tab_width = (*env)->GetFieldID(env, lpCache->GtkTextClass, "default_tab_width", "I");
+ lpCache->cursor_pos_x = (*env)->GetFieldID(env, lpCache->GtkTextClass, "cursor_pos_x", "I");
+ lpCache->cursor_pos_y = (*env)->GetFieldID(env, lpCache->GtkTextClass, "cursor_pos_y", "I");
+ lpCache->cursor_virtual_x = (*env)->GetFieldID(env, lpCache->GtkTextClass, "cursor_virtual_x", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkFileSelectionFids(JNIEnv *env, jobject lpGtkFileSelection, PGtkFileSelection_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkFileSelectionClass = (*env)->GetObjectClass(env, lpGtkFileSelection);
+ cacheGtkWindowFids(env, lpGtkFileSelection, &PGLOB(GtkWindowFc));
+ lpCache->dir_list = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "dir_list", "I");
+ lpCache->file_list = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "file_list", "I");
+ lpCache->selection_entry = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "selection_entry", "I");
+ lpCache->selection_text = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "selection_text", "I");
+ lpCache->main_vbox = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "main_vbox", "I");
+ lpCache->ok_button = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "ok_button", "I");
+ lpCache->cancel_button = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "cancel_button", "I");
+ lpCache->help_button = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "help_button", "I");
+ lpCache->history_pulldown = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "history_pulldown", "I");
+ lpCache->history_menu = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "history_menu", "I");
+ lpCache->history_list = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "history_list", "I");
+ lpCache->fileop_dialog = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_dialog", "I");
+ lpCache->fileop_entry = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_entry", "I");
+ lpCache->fileop_file = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_file", "I");
+ lpCache->cmpl_state = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "cmpl_state", "I");
+ lpCache->fileop_c_dir = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_c_dir", "I");
+ lpCache->fileop_del_file = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_del_file", "I");
+ lpCache->fileop_ren_file = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "fileop_ren_file", "I");
+ lpCache->button_area = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "button_area", "I");
+ lpCache->action_area = (*env)->GetFieldID(env, lpCache->GtkFileSelectionClass, "action_area", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkFontSelectionDialogFids(JNIEnv *env, jobject lpGtkFontSelectionDialog, PGtkFontSelectionDialog_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkFontSelectionDialogClass = (*env)->GetObjectClass(env, lpGtkFontSelectionDialog);
+ cacheGtkWindowFids(env, lpGtkFontSelectionDialog, &PGLOB(GtkWindowFc));
+ lpCache->fontsel = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "fontsel", "I");
+ lpCache->main_vbox = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "main_vbox", "I");
+ lpCache->action_area = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "action_area", "I");
+ lpCache->ok_button = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "ok_button", "I");
+ lpCache->apply_button = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "apply_button", "I");
+ lpCache->cancel_button = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "cancel_button", "I");
+ lpCache->dialog_width = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "dialog_width", "I");
+ lpCache->auto_resize = (*env)->GetFieldID(env, lpCache->GtkFontSelectionDialogClass, "auto_resize", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkObjectFids(JNIEnv *env, jobject lpGtkObject, PGtkObject_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkObjectClass = (*env)->GetObjectClass(env, lpGtkObject);
+ lpCache->klass = (*env)->GetFieldID(env, lpCache->GtkObjectClass, "klass", "I");
+ lpCache->flags = (*env)->GetFieldID(env, lpCache->GtkObjectClass, "flags", "I");
+ lpCache->ref_count = (*env)->GetFieldID(env, lpCache->GtkObjectClass, "ref_count", "I");
+ lpCache->object_data = (*env)->GetFieldID(env, lpCache->GtkObjectClass, "object_data", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkProgressFids(JNIEnv *env, jobject lpGtkProgress, PGtkProgress_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkProgressClass = (*env)->GetObjectClass(env, lpGtkProgress);
+
+ fprintf(stderr, "WARNING: Unimplemented method cacheGtkProgressFids.\n");
+ lpCache->cached = 1;
+};
+
+void cacheGtkProgressBarFids(JNIEnv *env, jobject lpGtkProgressBar, PGtkProgressBar_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkProgressBarClass = (*env)->GetObjectClass(env, lpGtkProgressBar);
+ cacheGtkProgressFids(env, lpGtkProgressBar, &PGLOB(GtkProgressFc));
+ lpCache->bar_style = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "bar_style", "I");
+ lpCache->orientation = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "orientation", "I");
+ lpCache->blocks = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "blocks", "I");
+ lpCache->in_block = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "in_block", "I");
+ lpCache->activity_pos = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "activity_pos", "I");
+ lpCache->activity_step = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "activity_step", "I");
+ lpCache->activity_blocks = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "activity_blocks", "I");
+ lpCache->activity_dir = (*env)->GetFieldID(env, lpCache->GtkProgressBarClass, "activity_dir", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkRequisitionFids(JNIEnv *env, jobject lpGtkRequisition, PGtkRequisition_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkRequisitionClass = (*env)->GetObjectClass(env, lpGtkRequisition);
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GtkRequisitionClass, "width", "S");
+ lpCache->height = (*env)->GetFieldID(env, lpCache->GtkRequisitionClass, "height", "S");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkStyleFids(JNIEnv *env, jobject lpGtkStyle, PGtkStyle_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkStyleClazz = (*env)->GetObjectClass(env, lpGtkStyle);
+ lpCache->klass = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "klass", "I");
+ lpCache->fg0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg0_pixel", "I");
+ lpCache->fg0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg0_red", "S");
+ lpCache->fg0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg0_green", "S");
+ lpCache->fg0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg0_blue", "S");
+ lpCache->fg1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg1_pixel", "I");
+ lpCache->fg1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg1_red", "S");
+ lpCache->fg1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg1_green", "S");
+ lpCache->fg1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg1_blue", "S");
+ lpCache->fg2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg2_pixel", "I");
+ lpCache->fg2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg2_red", "S");
+ lpCache->fg2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg2_green", "S");
+ lpCache->fg2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg2_blue", "S");
+ lpCache->fg3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg3_pixel", "I");
+ lpCache->fg3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg3_red", "S");
+ lpCache->fg3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg3_green", "S");
+ lpCache->fg3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg3_blue", "S");
+ lpCache->fg4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg4_pixel", "I");
+ lpCache->fg4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg4_red", "S");
+ lpCache->fg4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg4_green", "S");
+ lpCache->fg4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg4_blue", "S");
+ lpCache->bg0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg0_pixel", "I");
+ lpCache->bg0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg0_red", "S");
+ lpCache->bg0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg0_green", "S");
+ lpCache->bg0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg0_blue", "S");
+ lpCache->bg1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg1_pixel", "I");
+ lpCache->bg1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg1_red", "S");
+ lpCache->bg1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg1_green", "S");
+ lpCache->bg1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg1_blue", "S");
+ lpCache->bg2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg2_pixel", "I");
+ lpCache->bg2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg2_red", "S");
+ lpCache->bg2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg2_green", "S");
+ lpCache->bg2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg2_blue", "S");
+ lpCache->bg3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg3_pixel", "I");
+ lpCache->bg3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg3_red", "S");
+ lpCache->bg3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg3_green", "S");
+ lpCache->bg3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg3_blue", "S");
+ lpCache->bg4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg4_pixel", "I");
+ lpCache->bg4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg4_red", "S");
+ lpCache->bg4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg4_green", "S");
+ lpCache->bg4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg4_blue", "S");
+ lpCache->light0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light0_pixel", "I");
+ lpCache->light0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light0_red", "S");
+ lpCache->light0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light0_green", "S");
+ lpCache->light0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light0_blue", "S");
+ lpCache->light1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light1_pixel", "I");
+ lpCache->light1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light1_red", "S");
+ lpCache->light1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light1_green", "S");
+ lpCache->light1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light1_blue", "S");
+ lpCache->light2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light2_pixel", "I");
+ lpCache->light2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light2_red", "S");
+ lpCache->light2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light2_green", "S");
+ lpCache->light2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light2_blue", "S");
+ lpCache->light3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light3_pixel", "I");
+ lpCache->light3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light3_red", "S");
+ lpCache->light3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light3_green", "S");
+ lpCache->light3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light3_blue", "S");
+ lpCache->light4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light4_pixel", "I");
+ lpCache->light4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light4_red", "S");
+ lpCache->light4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light4_green", "S");
+ lpCache->light4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light4_blue", "S");
+ lpCache->dark0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark0_pixel", "I");
+ lpCache->dark0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark0_red", "S");
+ lpCache->dark0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark0_green", "S");
+ lpCache->dark0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark0_blue", "S");
+ lpCache->dark1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark1_pixel", "I");
+ lpCache->dark1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark1_red", "S");
+ lpCache->dark1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark1_green", "S");
+ lpCache->dark1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark1_blue", "S");
+ lpCache->dark2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark2_pixel", "I");
+ lpCache->dark2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark2_red", "S");
+ lpCache->dark2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark2_green", "S");
+ lpCache->dark2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark2_blue", "S");
+ lpCache->dark3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark3_pixel", "I");
+ lpCache->dark3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark3_red", "S");
+ lpCache->dark3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark3_green", "S");
+ lpCache->dark3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark3_blue", "S");
+ lpCache->dark4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark4_pixel", "I");
+ lpCache->dark4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark4_red", "S");
+ lpCache->dark4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark4_green", "S");
+ lpCache->dark4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark4_blue", "S");
+ lpCache->mid0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid0_pixel", "I");
+ lpCache->mid0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid0_red", "S");
+ lpCache->mid0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid0_green", "S");
+ lpCache->mid0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid0_blue", "S");
+ lpCache->mid1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid1_pixel", "I");
+ lpCache->mid1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid1_red", "S");
+ lpCache->mid1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid1_green", "S");
+ lpCache->mid1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid1_blue", "S");
+ lpCache->mid2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid2_pixel", "I");
+ lpCache->mid2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid2_red", "S");
+ lpCache->mid2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid2_green", "S");
+ lpCache->mid2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid2_blue", "S");
+ lpCache->mid3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid3_pixel", "I");
+ lpCache->mid3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid3_red", "S");
+ lpCache->mid3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid3_green", "S");
+ lpCache->mid3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid3_blue", "S");
+ lpCache->mid4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid4_pixel", "I");
+ lpCache->mid4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid4_red", "S");
+ lpCache->mid4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid4_green", "S");
+ lpCache->mid4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid4_blue", "S");
+ lpCache->text0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text0_pixel", "I");
+ lpCache->text0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text0_red", "S");
+ lpCache->text0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text0_green", "S");
+ lpCache->text0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text0_blue", "S");
+ lpCache->text1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text1_pixel", "I");
+ lpCache->text1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text1_red", "S");
+ lpCache->text1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text1_green", "S");
+ lpCache->text1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text1_blue", "S");
+ lpCache->text2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text2_pixel", "I");
+ lpCache->text2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text2_red", "S");
+ lpCache->text2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text2_green", "S");
+ lpCache->text2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text2_blue", "S");
+ lpCache->text3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text3_pixel", "I");
+ lpCache->text3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text3_red", "S");
+ lpCache->text3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text3_green", "S");
+ lpCache->text3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text3_blue", "S");
+ lpCache->text4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text4_pixel", "I");
+ lpCache->text4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text4_red", "S");
+ lpCache->text4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text4_green", "S");
+ lpCache->text4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text4_blue", "S");
+ lpCache->base0_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base0_pixel", "I");
+ lpCache->base0_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base0_red", "S");
+ lpCache->base0_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base0_green", "S");
+ lpCache->base0_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base0_blue", "S");
+ lpCache->base1_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base1_pixel", "I");
+ lpCache->base1_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base1_red", "S");
+ lpCache->base1_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base1_green", "S");
+ lpCache->base1_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base1_blue", "S");
+ lpCache->base2_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base2_pixel", "I");
+ lpCache->base2_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base2_red", "S");
+ lpCache->base2_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base2_green", "S");
+ lpCache->base2_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base2_blue", "S");
+ lpCache->base3_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base3_pixel", "I");
+ lpCache->base3_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base3_red", "S");
+ lpCache->base3_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base3_green", "S");
+ lpCache->base3_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base3_blue", "S");
+ lpCache->base4_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base4_pixel", "I");
+ lpCache->base4_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base4_red", "S");
+ lpCache->base4_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base4_green", "S");
+ lpCache->base4_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base4_blue", "S");
+ lpCache->black_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "black_pixel", "I");
+ lpCache->black_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "black_red", "S");
+ lpCache->black_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "black_green", "S");
+ lpCache->black_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "black_blue", "S");
+ lpCache->white_pixel = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "white_pixel", "I");
+ lpCache->white_red = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "white_red", "S");
+ lpCache->white_green = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "white_green", "S");
+ lpCache->white_blue = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "white_blue", "S");
+ lpCache->font = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "font", "I");
+ lpCache->fg_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg_gc0", "I");
+ lpCache->fg_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg_gc1", "I");
+ lpCache->fg_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg_gc2", "I");
+ lpCache->fg_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg_gc3", "I");
+ lpCache->fg_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "fg_gc4", "I");
+ lpCache->bg_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_gc0", "I");
+ lpCache->bg_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_gc1", "I");
+ lpCache->bg_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_gc2", "I");
+ lpCache->bg_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_gc3", "I");
+ lpCache->bg_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_gc4", "I");
+ lpCache->light_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light_gc0", "I");
+ lpCache->light_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light_gc1", "I");
+ lpCache->light_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light_gc2", "I");
+ lpCache->light_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light_gc3", "I");
+ lpCache->light_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "light_gc4", "I");
+ lpCache->dark_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark_gc0", "I");
+ lpCache->dark_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark_gc1", "I");
+ lpCache->dark_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark_gc2", "I");
+ lpCache->dark_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark_gc3", "I");
+ lpCache->dark_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "dark_gc4", "I");
+ lpCache->mid_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid_gc0", "I");
+ lpCache->mid_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid_gc1", "I");
+ lpCache->mid_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid_gc2", "I");
+ lpCache->mid_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid_gc3", "I");
+ lpCache->mid_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "mid_gc4", "I");
+ lpCache->text_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text_gc0", "I");
+ lpCache->text_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text_gc1", "I");
+ lpCache->text_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text_gc2", "I");
+ lpCache->text_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text_gc3", "I");
+ lpCache->text_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "text_gc4", "I");
+ lpCache->base_gc0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base_gc0", "I");
+ lpCache->base_gc1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base_gc1", "I");
+ lpCache->base_gc2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base_gc2", "I");
+ lpCache->base_gc3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base_gc3", "I");
+ lpCache->base_gc4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "base_gc4", "I");
+ lpCache->black_gc = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "black_gc", "I");
+ lpCache->white_gc = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "white_gc", "I");
+ lpCache->bg_pixmap0 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_pixmap0", "I");
+ lpCache->bg_pixmap1 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_pixmap1", "I");
+ lpCache->bg_pixmap2 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_pixmap2", "I");
+ lpCache->bg_pixmap3 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_pixmap3", "I");
+ lpCache->bg_pixmap4 = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "bg_pixmap4", "I");
+ lpCache->ref_count = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "ref_count", "I");
+ lpCache->attach_count = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "attach_count", "I");
+ lpCache->depth = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "depth", "I");
+ lpCache->colormap = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "colormap", "I");
+ lpCache->engine = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "engine", "I");
+ lpCache->engine_data = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "engine_data", "I");
+ lpCache->rc_style = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "rc_style", "I");
+ lpCache->styles = (*env)->GetFieldID(env, lpCache->GtkStyleClazz, "styles", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkStyleClassFids(JNIEnv *env, jobject lpGtkStyleClass, PGtkStyleClass_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkStyleClassClazz = (*env)->GetObjectClass(env, lpGtkStyleClass);
+ lpCache->xthickness = (*env)->GetFieldID(env, lpCache->GtkStyleClassClazz, "xthickness", "I");
+ lpCache->ythickness = (*env)->GetFieldID(env, lpCache->GtkStyleClassClazz, "ythickness", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkWidgetFids(JNIEnv *env, jobject lpGtkWidget, PGtkWidget_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkWidgetClass = (*env)->GetObjectClass(env, lpGtkWidget);
+ cacheGtkObjectFids(env, lpGtkWidget, &PGLOB(GtkObjectFc));
+ lpCache->private_flags = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "private_flags", "S");
+ lpCache->state = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "state", "B");
+ lpCache->saved_state = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "saved_state", "B");
+ lpCache->name = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "name", "I");
+ lpCache->style = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "style", "I");
+ lpCache->req_width = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "req_width", "S");
+ lpCache->req_height = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "req_height", "S");
+ lpCache->alloc_x = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "alloc_x", "S");
+ lpCache->alloc_y = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "alloc_y", "S");
+ lpCache->alloc_width = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "alloc_width", "S");
+ lpCache->alloc_height = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "alloc_height", "S");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "window", "I");
+ lpCache->parent = (*env)->GetFieldID(env, lpCache->GtkWidgetClass, "parent", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkFrameFids(JNIEnv *env, jobject lpGtkFrame, PGtkFrame_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkFrameClass = (*env)->GetObjectClass(env, lpGtkFrame);
+ cacheGtkBinFids(env, lpGtkFrame, &PGLOB(GtkBinFc));
+ lpCache->label = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "label", "I");
+ lpCache->shadow_type = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "shadow_type", "S");
+ lpCache->label_width = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "label_width", "S");
+ lpCache->label_height = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "label_height", "S");
+ lpCache->label_xalign = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "label_xalign", "F");
+ lpCache->label_yalign = (*env)->GetFieldID(env, lpCache->GtkFrameClass, "label_yalign", "F");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkWindowFids(JNIEnv *env, jobject lpGtkWindow, PGtkWindow_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkWindowClass = (*env)->GetObjectClass(env, lpGtkWindow);
+ cacheGtkBinFids(env, lpGtkWindow, &PGLOB(GtkBinFc));
+ lpCache->title = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "title", "I");
+ lpCache->wmclass_name = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "wmclass_name", "I");
+ lpCache->wmclass_class = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "wmclass_class", "I");
+ lpCache->type = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "type", "I");
+ lpCache->focus_widget = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "focus_widget", "I");
+ lpCache->default_widget = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "default_widget", "I");
+ lpCache->transient_parent = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "transient_parent", "I");
+ lpCache->resize_count = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "resize_count", "S");
+ lpCache->allow_shrink = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "allow_shrink", "I");
+ lpCache->allow_grow = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "allow_grow", "I");
+ lpCache->auto_shrink = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "auto_shrink", "I");
+ lpCache->handling_resize = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "handling_resize", "I");
+ lpCache->position = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "position", "I");
+ lpCache->use_uposition = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "use_uposition", "I");
+ lpCache->modal = (*env)->GetFieldID(env, lpCache->GtkWindowClass, "modal", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkCheckMenuItemFids(JNIEnv *env, jobject lpGtkCheckMenuItem, PGtkCheckMenuItem_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkCheckMenuItemClass = (*env)->GetObjectClass(env, lpGtkCheckMenuItem);
+ cacheGtkMenuItemFids(env, lpGtkCheckMenuItem, &PGLOB(GtkMenuItemFc));
+ lpCache->active = (*env)->GetFieldID(env, lpCache->GtkCheckMenuItemClass, "active", "I");
+ lpCache->always_show_toggle = (*env)->GetFieldID(env, lpCache->GtkCheckMenuItemClass, "always_show_toggle", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkAdjustmentFids(JNIEnv *env, jobject lpGtkAdjustment, PGtkAdjustment_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkAdjustmentClass = (*env)->GetObjectClass(env, lpGtkAdjustment);
+ cacheGtkDataFids(env, lpGtkAdjustment, &PGLOB(GtkDataFc));
+ lpCache->lower = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "lower", "F");
+ lpCache->upper = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "upper", "F");
+ lpCache->value = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "value", "F");
+ lpCache->step_increment = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "step_increment", "F");
+ lpCache->page_increment = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "page_increment", "F");
+ lpCache->page_size = (*env)->GetFieldID(env, lpCache->GtkAdjustmentClass, "page_size", "F");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkBoxFids(JNIEnv *env, jobject lpGtkBox, PGtkBox_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkBoxClass = (*env)->GetObjectClass(env, lpGtkBox);
+ cacheGtkContainerFids(env, lpGtkBox, &PGLOB(GtkContainerFc));
+ lpCache->children = (*env)->GetFieldID(env, lpCache->GtkBoxClass, "children", "I");
+ lpCache->spacing = (*env)->GetFieldID(env, lpCache->GtkBoxClass, "spacing", "S");
+ lpCache->homogeneous = (*env)->GetFieldID(env, lpCache->GtkBoxClass, "homogeneous", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkHBoxFids(JNIEnv *env, jobject lpGtkHBox, PGtkHBox_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkHBoxClass = (*env)->GetObjectClass(env, lpGtkHBox);
+ cacheGtkBoxFids(env, lpGtkHBox, &PGLOB(GtkBoxFc));
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkMenuFids(JNIEnv *env, jobject lpGtkMenu, PGtkMenu_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkMenuClass = (*env)->GetObjectClass(env, lpGtkMenu);
+ cacheGtkMenuShellFids(env, lpGtkMenu, &PGLOB(GtkMenuShellFc));
+ lpCache->parent_menu_item = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "parent_menu_item", "I");
+ lpCache->old_active_menu_item = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "old_active_menu_item", "I");
+ lpCache->accel_group = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "accel_group", "I");
+ lpCache->position_func = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "position_func", "I");
+ lpCache->position_func_data = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "position_func_data", "I");
+ lpCache->toplevel = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "toplevel", "I");
+ lpCache->tearoff_window = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "tearoff_window", "I");
+ lpCache->torn_off = (*env)->GetFieldID(env, lpCache->GtkMenuClass, "torn_off", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkMenuShellFids(JNIEnv *env, jobject lpGtkMenuShell, PGtkMenuShell_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkMenuShellClass = (*env)->GetObjectClass(env, lpGtkMenuShell);
+ cacheGtkContainerFids(env, lpGtkMenuShell, &PGLOB(GtkContainerFc));
+ lpCache->active = (*env)->GetFieldID(env, lpCache->GtkMenuShellClass, "active", "I");
+ lpCache->cached = 1;
+
+};
+
+void cacheGtkItemFids(JNIEnv *env, jobject lpGtkItem, PGtkItem_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkItemClass = (*env)->GetObjectClass(env, lpGtkItem);
+ cacheGtkBinFids(env, lpGtkItem, &PGLOB(GtkBinFc));
+
+ lpCache->cached = 1;
+}
+
+void cacheGtkMenuItemFids(JNIEnv *env, jobject lpGtkMenuItem, PGtkMenuItem_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkMenuItemClass = (*env)->GetObjectClass(env, lpGtkMenuItem);
+ cacheGtkItemFids(env, lpGtkMenuItem, &PGLOB(GtkItemFc));
+ lpCache->submenu = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "submenu", "I");
+ lpCache->accelerator_signal = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "accelerator_signal", "I");
+ lpCache->toggle_size = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "toggle_size", "I");
+ lpCache->accelerator_width = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "accelerator_width", "I");
+ lpCache->show_toggle_indicator = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "show_toggle_indicator", "I");
+ lpCache->show_submenu_indicator = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "show_submenu_indicator", "I");
+ lpCache->submenu_placement = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "submenu_placement", "I");
+ lpCache->submenu_direction = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "submenu_direction", "I");
+ lpCache->right_justify = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "right_justify", "I");
+ lpCache->timer = (*env)->GetFieldID(env, lpCache->GtkMenuItemClass, "timer", "I");
+
+ lpCache->cached = 1;
+};
+
+void cacheGtkCListRowFids(JNIEnv *env, jobject lpGtkCListRow, PGtkCListRow_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkCListRowClass = (*env)->GetObjectClass(env, lpGtkCListRow);
+ lpCache->cell = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "cell", "I");
+ lpCache->state = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "state", "I");
+ lpCache->foreground_red = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "foreground_red", "S");
+ lpCache->foreground_green = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "foreground_green", "S");
+ lpCache->foreground_blue = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "foreground_blue", "S");
+ lpCache->foreground_pixel = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "foreground_pixel", "I");
+ lpCache->background_red = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "background_red", "S");
+ lpCache->background_green = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "background_green", "S");
+ lpCache->background_blue = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "background_blue", "S");
+ lpCache->background_pixel = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "background_pixel", "I");
+ lpCache->style = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "style", "I");
+ lpCache->data = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "data", "I");
+ lpCache->destroy = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "destroy", "I");
+ lpCache->fg_set = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "fg_set", "I");
+ lpCache->bg_set = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "bg_set", "I");
+ lpCache->selectable = (*env)->GetFieldID(env, lpCache->GtkCListRowClass, "selectable", "I");
+
+ lpCache->cached = 1;
+}
+
+void cacheGtkCListColumnFids(JNIEnv *env, jobject lpGtkCListColumn, PGtkCListColumn_FID_CACHE lpCache)
+{
+ if (lpCache->cached) return;
+
+ lpCache->GtkCListColumnClass = (*env)->GetObjectClass(env, lpGtkCListColumn);
+ lpCache->title = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "title", "I");
+ lpCache->area_x = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "area_x", "S");
+ lpCache->area_y = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "area_y", "S");
+ lpCache->area_width = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "area_width", "S");
+ lpCache->area_height = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "area_height", "S");
+ lpCache->button = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "button", "I");
+ lpCache->window = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "window", "I");
+ lpCache->width = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "width", "I");
+ lpCache->min_width = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "min_width", "I");
+ lpCache->max_width = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "max_width", "I");
+ lpCache->justification = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "justification", "I");
+ lpCache->visible = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "visible", "I");
+ lpCache->width_set = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "width_set", "I");
+ lpCache->resizeable = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "resizeable", "I");
+ lpCache->auto_resize = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "auto_resize", "I");
+ lpCache->button_passive = (*env)->GetFieldID(env, lpCache->GtkCListColumnClass, "button_passive", "I");
+
+ lpCache->cached = 1;
+}
+
+void cacheGtkCTreeFids(JNIEnv *env, jobject lpGtkCTree, PGtkCTree_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkCTreeClass = (*env)->GetObjectClass(env, lpGtkCTree);
+ cacheGtkCListFids(env, lpGtkCTree, &PGLOB(GtkCListFc));
+ lpCache->tree_indent = (*env)->GetFieldID(env, lpCache->GtkCTreeClass, "tree_indent", "I");
+ lpCache->tree_column = (*env)->GetFieldID(env, lpCache->GtkCTreeClass, "tree_column", "I");
+
+ lpCache->cached = 1;
+}
+
+void cacheGtkCTreeRowFids(JNIEnv *env, jobject lpGtkCTreeRow, PGtkCTreeRow_FID_CACHE lpCache)
+{
+ DECL_GLOB(pGlob)
+ if (lpCache->cached) return;
+
+ lpCache->GtkCTreeRowClass = (*env)->GetObjectClass(env, lpGtkCTreeRow);
+ cacheGtkCListRowFids(env, lpGtkCTreeRow, &PGLOB(GtkCListRowFc));
+ lpCache->parent = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "parent", "I");
+ lpCache->sibling = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "sibling", "I");
+ lpCache->children = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "children", "I");
+ lpCache->pixmap_closed = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "pixmap_closed", "I");
+ lpCache->mask_closed = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "mask_closed", "I");
+ lpCache->pixmap_opened = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "pixmap_opened", "I");
+ lpCache->mask_opened = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "mask_opened", "I");
+ lpCache->level = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "level", "S");
+ lpCache->is_leaf = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "is_leaf", "I");
+ lpCache->expanded = (*env)->GetFieldID(env, lpCache->GtkCTreeRowClass, "expanded", "I");
+
+ lpCache->cached = 1;
+}
+
+/* ----------- swt getters and setters ----------- */
+/**
+ * These functions get or set object field ids assuming that the
+ * fids for these objects have already been cached.
+ *
+ */
+void getGdkColorFields(JNIEnv *env, jobject lpObject, GdkColor *lpGdkColor, GdkColor_FID_CACHE *lpGdkColorFc)
+{
+ lpGdkColor->pixel = (*env)->GetIntField(env, lpObject, lpGdkColorFc->pixel);
+ lpGdkColor->red = (*env)->GetShortField(env, lpObject, lpGdkColorFc->red);
+ lpGdkColor->green = (*env)->GetShortField(env, lpObject, lpGdkColorFc->green);
+ lpGdkColor->blue = (*env)->GetShortField(env, lpObject, lpGdkColorFc->blue);
+}
+
+void setGdkColorFields(JNIEnv *env, jobject lpObject, GdkColor *lpGdkColor, GdkColor_FID_CACHE *lpGdkColorFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGdkColorFc->pixel, (jint)lpGdkColor->pixel);
+ (*env)->SetShortField(env, lpObject, lpGdkColorFc->red, (jshort)lpGdkColor->red);
+ (*env)->SetShortField(env, lpObject, lpGdkColorFc->green, (jshort)lpGdkColor->green);
+ (*env)->SetShortField(env, lpObject, lpGdkColorFc->blue, (jshort)lpGdkColor->blue);
+}
+
+void getGdkEventKeyFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventKey_FID_CACHE *lpGdkEventKeyFc)
+{
+ GdkEventKey *lpGdkEventKey = (GdkEventKey*)lpGdkEvent;
+ lpGdkEventKey->type = (*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->type);
+ lpGdkEventKey->window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->window);
+ lpGdkEventKey->send_event = (*env)->GetByteField(env, lpObject, lpGdkEventKeyFc->send_event);
+ lpGdkEventKey->time = (*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->time);
+ lpGdkEventKey->state = (*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->state);
+ lpGdkEventKey->keyval = (*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->keyval);
+ lpGdkEventKey->length = (*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->length);
+ lpGdkEventKey->string = (char*)(*env)->GetIntField(env, lpObject, lpGdkEventKeyFc->string);
+}
+
+void setGdkEventKeyFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventKey_FID_CACHE *lpGdkEventKeyFc)
+{
+ GdkEventKey *lpGdkEventKey = (GdkEventKey*)lpGdkEvent;
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->type, (jint)lpGdkEventKey->type);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->window, (jint)lpGdkEventKey->window);
+ (*env)->SetByteField(env, lpObject, lpGdkEventKeyFc->send_event, (jbyte)lpGdkEventKey->send_event);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->time, (jint)lpGdkEventKey->time);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->state, (jint)lpGdkEventKey->state);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->keyval, (jint)lpGdkEventKey->keyval);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->length, (jint)lpGdkEventKey->length);
+ (*env)->SetIntField(env, lpObject, lpGdkEventKeyFc->string, (jint)lpGdkEventKey->string);
+}
+
+void getGdkEventButtonFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventButton_FID_CACHE *lpGdkEventButtonFc)
+{
+ GdkEventButton *lpGdkEventButton = (GdkEventButton*)lpGdkEvent;
+ lpGdkEventButton->type = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->type);
+ lpGdkEventButton->window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->window);
+ lpGdkEventButton->send_event = (*env)->GetByteField(env, lpObject, lpGdkEventButtonFc->send_event);
+ lpGdkEventButton->time = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->time);
+ lpGdkEventButton->x = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->x);
+ lpGdkEventButton->y = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->y);
+ lpGdkEventButton->pressure = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->pressure);
+ lpGdkEventButton->xtilt = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->xtilt);
+ lpGdkEventButton->ytilt = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->ytilt);
+ lpGdkEventButton->state = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->state);
+ lpGdkEventButton->button = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->button);
+ lpGdkEventButton->source = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->source);
+ lpGdkEventButton->deviceid = (*env)->GetIntField(env, lpObject, lpGdkEventButtonFc->deviceid);
+ lpGdkEventButton->x_root = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->x_root);
+ lpGdkEventButton->y_root = (*env)->GetLongField(env, lpObject, lpGdkEventButtonFc->y_root);
+}
+
+void setGdkEventButtonFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventButton_FID_CACHE *lpGdkEventButtonFc)
+{
+ GdkEventButton *lpGdkEventButton = (GdkEventButton*)lpGdkEvent;
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->type, (jint)lpGdkEventButton->type);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->window, (jint)lpGdkEventButton->window);
+ (*env)->SetByteField(env, lpObject, lpGdkEventButtonFc->send_event, (jbyte)lpGdkEventButton->send_event);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->time, (jint)lpGdkEventButton->time);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->x, (jlong)lpGdkEventButton->x);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->y, (jlong)lpGdkEventButton->y);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->pressure, (jlong)lpGdkEventButton->pressure);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->xtilt, (jlong)lpGdkEventButton->xtilt);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->ytilt, (jlong)lpGdkEventButton->ytilt);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->state, (jint)lpGdkEventButton->state);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->button, (jint)lpGdkEventButton->button);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->source, (jint)lpGdkEventButton->source);
+ (*env)->SetIntField(env, lpObject, lpGdkEventButtonFc->deviceid, (jint)lpGdkEventButton->deviceid);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->x_root, (jlong)lpGdkEventButton->x_root);
+ (*env)->SetLongField(env, lpObject, lpGdkEventButtonFc->y_root, (jlong)lpGdkEventButton->y_root);
+}
+
+void getGdkEventMotionFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventMotion_FID_CACHE *lpGdkEventMotionFc)
+{
+ GdkEventMotion *lpGdkEventMotion = (GdkEventMotion*)lpGdkEvent;
+ lpGdkEventMotion->type = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->type);
+ lpGdkEventMotion->window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->window);
+ lpGdkEventMotion->send_event = (*env)->GetByteField(env, lpObject, lpGdkEventMotionFc->send_event);
+ lpGdkEventMotion->time = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->time);
+ lpGdkEventMotion->x = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->x);
+ lpGdkEventMotion->y = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->y);
+ lpGdkEventMotion->pressure = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->pressure);
+ lpGdkEventMotion->xtilt = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->xtilt);
+ lpGdkEventMotion->ytilt = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->ytilt);
+ lpGdkEventMotion->state = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->state);
+ lpGdkEventMotion->is_hint = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->is_hint);
+ lpGdkEventMotion->source = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->source);
+ lpGdkEventMotion->deviceid = (*env)->GetIntField(env, lpObject, lpGdkEventMotionFc->deviceid);
+ lpGdkEventMotion->x_root = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->x_root);
+ lpGdkEventMotion->y_root = (*env)->GetLongField(env, lpObject, lpGdkEventMotionFc->y_root);
+}
+
+void setGdkEventMotionFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventMotion_FID_CACHE *lpGdkEventMotionFc)
+{
+ GdkEventMotion *lpGdkEventMotion = (GdkEventMotion*)lpGdkEvent;
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->type, lpGdkEventMotion->type);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->window, (jint)lpGdkEventMotion->window);
+ (*env)->SetByteField(env, lpObject, lpGdkEventMotionFc->send_event, lpGdkEventMotion->send_event);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->time, (jint)lpGdkEventMotion->time);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->x, (jlong)lpGdkEventMotion->x);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->y, (jlong)lpGdkEventMotion->y);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->pressure, (jlong)lpGdkEventMotion->pressure);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->xtilt, (jlong)lpGdkEventMotion->xtilt);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->ytilt, (jlong)lpGdkEventMotion->ytilt);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->state, (jint)lpGdkEventMotion->state);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->is_hint, (jint)lpGdkEventMotion->is_hint);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->source, (jint)lpGdkEventMotion->source);
+ (*env)->SetIntField(env, lpObject, lpGdkEventMotionFc->deviceid, (jint)lpGdkEventMotion->deviceid);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->x_root, (jlong)lpGdkEventMotion->x_root);
+ (*env)->SetLongField(env, lpObject, lpGdkEventMotionFc->y_root, (jlong)lpGdkEventMotion->y_root);
+}
+
+void getGdkEventExposeFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventExpose_FID_CACHE *lpGdkEventExposeFc)
+{
+ GdkEventExpose *lpGdkEventExpose = (GdkEventExpose*)lpGdkEvent;
+ lpGdkEventExpose->area.x = (*env)->GetShortField(env, lpObject, lpGdkEventExposeFc->x);
+ lpGdkEventExpose->area.y = (*env)->GetShortField(env, lpObject, lpGdkEventExposeFc->y);
+ lpGdkEventExpose->area.width = (*env)->GetShortField(env, lpObject, lpGdkEventExposeFc->width);
+ lpGdkEventExpose->area.height = (*env)->GetShortField(env, lpObject, lpGdkEventExposeFc->height);
+ lpGdkEventExpose->count = (*env)->GetIntField(env, lpObject, lpGdkEventExposeFc->count);
+}
+
+void setGdkEventExposeFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventExpose_FID_CACHE *lpGdkEventExposeFc)
+{
+ GdkEventExpose *lpGdkEventExpose = (GdkEventExpose*)lpGdkEvent;
+ (*env)->SetShortField(env, lpObject, lpGdkEventExposeFc->x, (jshort)lpGdkEventExpose->area.x);
+ (*env)->SetShortField(env, lpObject, lpGdkEventExposeFc->y, (jshort)lpGdkEventExpose->area.y);
+ (*env)->SetShortField(env, lpObject, lpGdkEventExposeFc->width, (jshort)lpGdkEventExpose->area.width);
+ (*env)->SetShortField(env, lpObject, lpGdkEventExposeFc->height, (jshort)lpGdkEventExpose->area.height);
+ (*env)->SetIntField(env, lpObject, lpGdkEventExposeFc->count, (jint)lpGdkEventExpose->count);
+}
+
+void getGdkFontFields(JNIEnv *env, jobject lpObject, GdkFont *lpGdkFont, GdkFont_FID_CACHE *lpGdkFontFc)
+{
+ lpGdkFont->type = (*env)->GetIntField(env, lpObject, lpGdkFontFc->type);
+ lpGdkFont->ascent = (*env)->GetIntField(env, lpObject, lpGdkFontFc->ascent);
+ lpGdkFont->descent = (*env)->GetIntField(env, lpObject, lpGdkFontFc->descent);
+}
+
+void setGdkFontFields(JNIEnv *env, jobject lpObject, GdkFont *lpGdkFont, GdkFont_FID_CACHE *lpGdkFontFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGdkFontFc->type, (jint)lpGdkFont->type);
+ (*env)->SetIntField(env, lpObject, lpGdkFontFc->ascent, (jint)lpGdkFont->ascent);
+ (*env)->SetIntField(env, lpObject, lpGdkFontFc->descent, (jint)lpGdkFont->descent);
+}
+
+void getGdkGCValuesFields(JNIEnv *env, jobject lpObject, GdkGCValues *lpGdkGCValues, GdkGCValues_FID_CACHE *lpGdkGCValuesFc)
+{
+ lpGdkGCValues->foreground.pixel = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->foreground_pixel);
+ lpGdkGCValues->foreground.red = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->foreground_red);
+ lpGdkGCValues->foreground.green = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->foreground_green);
+ lpGdkGCValues->foreground.blue = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->foreground_blue);
+ lpGdkGCValues->background.pixel = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->background_pixel);
+ lpGdkGCValues->background.red = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->background_red);
+ lpGdkGCValues->background.green = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->background_green);
+ lpGdkGCValues->background.blue = (*env)->GetShortField(env, lpObject, lpGdkGCValuesFc->background_blue);
+ lpGdkGCValues->font = (GdkFont*)(*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->font);
+ lpGdkGCValues->function = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->function);
+ lpGdkGCValues->fill = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->fill);
+ lpGdkGCValues->tile = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->tile);
+ lpGdkGCValues->stipple = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->stipple);
+ lpGdkGCValues->clip_mask = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->clip_mask);
+ lpGdkGCValues->subwindow_mode = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->subwindow_mode);
+ lpGdkGCValues->ts_x_origin = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->ts_x_origin);
+ lpGdkGCValues->ts_y_origin = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->ts_y_origin);
+ lpGdkGCValues->clip_x_origin = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->clip_x_origin);
+ lpGdkGCValues->clip_y_origin = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->clip_y_origin);
+ lpGdkGCValues->graphics_exposures = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->graphics_exposures);
+ lpGdkGCValues->line_width = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->line_width);
+ lpGdkGCValues->line_style = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->line_style);
+ lpGdkGCValues->cap_style = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->cap_style);
+ lpGdkGCValues->join_style = (*env)->GetIntField(env, lpObject, lpGdkGCValuesFc->join_style);
+}
+
+void setGdkGCValuesFields(JNIEnv *env, jobject lpObject, GdkGCValues *lpGdkGCValues, GdkGCValues_FID_CACHE *lpGdkGCValuesFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->foreground_pixel, (jint)lpGdkGCValues->foreground.pixel);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->foreground_red, (jshort)lpGdkGCValues->foreground.red);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->foreground_green, (jshort)lpGdkGCValues->foreground.green);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->foreground_blue, (jshort)lpGdkGCValues->foreground.blue);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->background_pixel, (jint)lpGdkGCValues->background.pixel);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->background_red, (jshort)lpGdkGCValues->background.red);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->background_green, (jshort)lpGdkGCValues->background.green);
+ (*env)->SetShortField(env, lpObject, lpGdkGCValuesFc->background_blue, (jshort)lpGdkGCValues->background.blue);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->font, (jint)lpGdkGCValues->font);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->function, (jint)lpGdkGCValues->function);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->fill, (jint)lpGdkGCValues->fill);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->tile, (jint)lpGdkGCValues->tile);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->stipple, (jint)lpGdkGCValues->stipple);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->clip_mask, (jint)lpGdkGCValues->clip_mask);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->subwindow_mode, (jint)lpGdkGCValues->subwindow_mode);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->ts_x_origin, (jint)lpGdkGCValues->ts_x_origin);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->ts_y_origin, (jint)lpGdkGCValues->ts_y_origin);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->clip_x_origin, (jint)lpGdkGCValues->clip_x_origin);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->clip_y_origin, (jint)lpGdkGCValues->clip_y_origin);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->graphics_exposures, (jint)lpGdkGCValues->graphics_exposures);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->line_width, (jint)lpGdkGCValues->line_width);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->line_style, (jint)lpGdkGCValues->line_style);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->cap_style, (jint)lpGdkGCValues->cap_style);
+ (*env)->SetIntField(env, lpObject, lpGdkGCValuesFc->join_style, (jint)lpGdkGCValues->join_style);
+}
+
+void getGdkImageFields(JNIEnv *env, jobject lpObject, GdkImage *lpGdkImage, GdkImage_FID_CACHE *lpGdkImageFc)
+{
+ lpGdkImage->type = (*env)->GetIntField(env, lpObject, lpGdkImageFc->type);
+ lpGdkImage->visual = (GdkVisual*)(*env)->GetIntField(env, lpObject, lpGdkImageFc->visual);
+ lpGdkImage->byte_order = (*env)->GetIntField(env, lpObject, lpGdkImageFc->byte_order);
+ lpGdkImage->width = (*env)->GetShortField(env, lpObject, lpGdkImageFc->width);
+ lpGdkImage->height = (*env)->GetShortField(env, lpObject, lpGdkImageFc->height);
+ lpGdkImage->depth = (*env)->GetShortField(env, lpObject, lpGdkImageFc->depth);
+ lpGdkImage->bpp = (*env)->GetShortField(env, lpObject, lpGdkImageFc->bpp);
+ lpGdkImage->bpl = (*env)->GetShortField(env, lpObject, lpGdkImageFc->bpl);
+ lpGdkImage->mem = (gpointer)(*env)->GetIntField(env, lpObject, lpGdkImageFc->mem);
+}
+
+void setGdkImageFields(JNIEnv *env, jobject lpObject, GdkImage *lpGdkImage, GdkImage_FID_CACHE *lpGdkImageFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGdkImageFc->type, (jint)lpGdkImage->type);
+ (*env)->SetIntField(env, lpObject, lpGdkImageFc->visual, (jint)lpGdkImage->visual);
+ (*env)->SetIntField(env, lpObject, lpGdkImageFc->byte_order, (jint)lpGdkImage->byte_order);
+ (*env)->SetShortField(env, lpObject, lpGdkImageFc->width, (jshort)lpGdkImage->width);
+ (*env)->SetShortField(env, lpObject, lpGdkImageFc->height, (jshort)lpGdkImage->height);
+ (*env)->SetShortField(env, lpObject, lpGdkImageFc->depth, (jshort)lpGdkImage->depth);
+ (*env)->SetShortField(env, lpObject, lpGdkImageFc->bpp, (jshort)lpGdkImage->bpp);
+ (*env)->SetShortField(env, lpObject, lpGdkImageFc->bpl, (jshort)lpGdkImage->bpl);
+ (*env)->SetIntField(env, lpObject, lpGdkImageFc->mem, (jint)lpGdkImage->mem);
+}
+
+void getGdkPointFields(JNIEnv *env, jobject lpObject, GdkPoint *lpGdkPoint, GdkPoint_FID_CACHE *lpGdkPointFc)
+{
+ lpGdkPoint->x = (*env)->GetShortField(env, lpObject, lpGdkPointFc->x);
+ lpGdkPoint->y = (*env)->GetShortField(env, lpObject, lpGdkPointFc->y);
+}
+
+void setGdkPointFields(JNIEnv *env, jobject lpObject, GdkPoint *lpGdkPoint, GdkPoint_FID_CACHE *lpGdkPointFc)
+{
+ (*env)->SetShortField(env, lpObject, lpGdkPointFc->x, (jshort)lpGdkPoint->x);
+ (*env)->SetShortField(env, lpObject, lpGdkPointFc->y, (jshort)lpGdkPoint->y);
+}
+
+void getGdkRectangleFields(JNIEnv *env, jobject lpObject, GdkRectangle *lpGdkRectangle, GdkRectangle_FID_CACHE *lpGdkRectangleFc)
+{
+ lpGdkRectangle->x = (*env)->GetShortField(env, lpObject, lpGdkRectangleFc->x);
+ lpGdkRectangle->y = (*env)->GetShortField(env, lpObject, lpGdkRectangleFc->y);
+ lpGdkRectangle->width = (*env)->GetShortField(env, lpObject, lpGdkRectangleFc->width);
+ lpGdkRectangle->height = (*env)->GetShortField(env, lpObject, lpGdkRectangleFc->height);
+}
+
+void setGdkRectangleFields(JNIEnv *env, jobject lpObject, GdkRectangle *lpGdkRectangle, GdkRectangle_FID_CACHE *lpGdkRectangleFc)
+{
+ (*env)->SetShortField(env, lpObject, lpGdkRectangleFc->x, (jshort)lpGdkRectangle->x);
+ (*env)->SetShortField(env, lpObject, lpGdkRectangleFc->y, (jshort)lpGdkRectangle->y);
+ (*env)->SetShortField(env, lpObject, lpGdkRectangleFc->width, (jshort)lpGdkRectangle->width);
+ (*env)->SetShortField(env, lpObject, lpGdkRectangleFc->height, (jshort)lpGdkRectangle->height);
+}
+
+void getGdkVisualFields(JNIEnv *env, jobject lpObject, GdkVisual *lpGdkVisual, GdkVisual_FID_CACHE *lpGdkVisualFc)
+{
+ lpGdkVisual->type = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->type);
+ lpGdkVisual->depth = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->depth);
+ lpGdkVisual->byte_order = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->byte_order);
+ lpGdkVisual->colormap_size = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->colormap_size);
+ lpGdkVisual->bits_per_rgb = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->bits_per_rgb);
+ lpGdkVisual->red_mask = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->red_mask);
+ lpGdkVisual->red_shift = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->red_shift);
+ lpGdkVisual->red_prec = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->red_prec);
+ lpGdkVisual->green_mask = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->green_mask);
+ lpGdkVisual->green_shift = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->green_shift);
+ lpGdkVisual->green_prec = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->green_prec);
+ lpGdkVisual->blue_mask = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->blue_mask);
+ lpGdkVisual->blue_shift = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->blue_shift);
+ lpGdkVisual->blue_prec = (*env)->GetIntField(env, lpObject, lpGdkVisualFc->blue_prec);
+}
+
+void setGdkVisualFields(JNIEnv *env, jobject lpObject, GdkVisual *lpGdkVisual, GdkVisual_FID_CACHE *lpGdkVisualFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->type, (jint)lpGdkVisual->type);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->depth, (jint)lpGdkVisual->depth);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->byte_order, (jint)lpGdkVisual->byte_order);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->colormap_size, (jint)lpGdkVisual->colormap_size);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->bits_per_rgb, (jint)lpGdkVisual->bits_per_rgb);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->red_mask, (jint)lpGdkVisual->red_mask);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->red_shift, (jint)lpGdkVisual->red_shift);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->red_prec, (jint)lpGdkVisual->red_prec);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->green_mask, (jint)lpGdkVisual->green_mask);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->green_shift, (jint)lpGdkVisual->green_shift);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->green_prec, (jint)lpGdkVisual->green_prec);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->blue_mask, (jint)lpGdkVisual->blue_mask);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->blue_shift, (jint)lpGdkVisual->blue_shift);
+ (*env)->SetIntField(env, lpObject, lpGdkVisualFc->blue_prec, (jint)lpGdkVisual->blue_prec);
+}
+
+void getGtkAllocationFields(JNIEnv *env, jobject lpObject, GtkAllocation *lpGtkAllocation, GtkAllocation_FID_CACHE *lpGtkAllocationFc)
+{
+ lpGtkAllocation->x = (*env)->GetShortField(env, lpObject, lpGtkAllocationFc->x);
+ lpGtkAllocation->y = (*env)->GetShortField(env, lpObject, lpGtkAllocationFc->y);
+ lpGtkAllocation->width = (*env)->GetShortField(env, lpObject, lpGtkAllocationFc->width);
+ lpGtkAllocation->height = (*env)->GetShortField(env, lpObject, lpGtkAllocationFc->height);
+}
+
+void setGtkAllocationFields(JNIEnv *env, jobject lpObject, GtkAllocation *lpGtkAllocation, GtkAllocation_FID_CACHE *lpGtkAllocationFc)
+{
+ (*env)->SetShortField(env, lpObject, lpGtkAllocationFc->x, lpGtkAllocation->x);
+ (*env)->SetShortField(env, lpObject, lpGtkAllocationFc->y, lpGtkAllocation->y);
+ (*env)->SetShortField(env, lpObject, lpGtkAllocationFc->width, lpGtkAllocation->width);
+ (*env)->SetShortField(env, lpObject, lpGtkAllocationFc->height, lpGtkAllocation->height);
+}
+
+void getGtkArgFields(JNIEnv *env, jobject lpObject, GtkArg *lpGtkArg, GtkArg_FID_CACHE *lpGtkArgFc)
+{
+ fprintf(stderr, "WARNING: Unimplemented method getGtkArgFields.\n");
+}
+
+void setGtkArgFields(JNIEnv *env, jobject lpObject, GtkArg *lpGtkArg, GtkArg_FID_CACHE *lpGtkArgFc)
+{
+ fprintf(stderr, "WARNING: Unimplemented method setGtkArgFields.\n");
+}
+
+void getGtkBinFields(JNIEnv *env, jobject lpObject, GtkBin *lpGtkBin, GtkBin_FID_CACHE *lpGtkBinFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkContainerFields(env, lpObject, &lpGtkBin->container, &PGLOB(GtkContainerFc));
+ lpGtkBin->child = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkBinFc->child);
+}
+
+void setGtkBinFields(JNIEnv *env, jobject lpObject, GtkBin *lpGtkBin, GtkBin_FID_CACHE *lpGtkBinFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkContainerFields(env, lpObject, &lpGtkBin->container, &PGLOB(GtkContainerFc));
+ (*env)->SetIntField(env, lpObject, lpGtkBinFc->child, (jint)lpGtkBin->child);
+}
+
+void getGtkBoxFields(JNIEnv *env, jobject lpObject, GtkBox *lpGtkBox, GtkBox_FID_CACHE *lpGtkBoxFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkContainerFields(env, lpObject, &lpGtkBox->container, &PGLOB(GtkContainerFc));
+ lpGtkBox->children = (GList*)(*env)->GetIntField(env, lpObject, lpGtkBoxFc->children);
+ lpGtkBox->spacing = (*env)->GetShortField(env, lpObject, lpGtkBoxFc->spacing);
+ lpGtkBox->homogeneous = (*env)->GetIntField(env, lpObject, lpGtkBoxFc->homogeneous);
+}
+
+void setGtkBoxFields(JNIEnv *env, jobject lpObject, GtkBox *lpGtkBox, GtkBox_FID_CACHE *lpGtkBoxFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkContainerFields(env, lpObject, &lpGtkBox->container, &PGLOB(GtkContainerFc));
+ (*env)->SetIntField(env, lpObject, lpGtkBoxFc->children, (jint)lpGtkBox->children);
+ (*env)->SetShortField(env, lpObject, lpGtkBoxFc->spacing, (jshort)lpGtkBox->spacing);
+ (*env)->SetIntField(env, lpObject, lpGtkBoxFc->homogeneous, (jint)lpGtkBox->homogeneous);
+}
+
+void getGtkCListFields(JNIEnv *env, jobject lpObject, GtkCList *lpGtkCList, GtkCList_FID_CACHE *lpGtkCListFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkContainerFields(env, lpObject, &lpGtkCList->container, &PGLOB(GtkContainerFc));
+ lpGtkCList->flags = (*env)->GetShortField(env, lpObject, lpGtkCListFc->clist_flags);
+ lpGtkCList->row_mem_chunk = (GMemChunk*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->row_mem_chunk);
+ lpGtkCList->cell_mem_chunk = (GMemChunk*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->cell_mem_chunk);
+ lpGtkCList->freeze_count = (*env)->GetIntField(env, lpObject, lpGtkCListFc->freeze_count);
+ lpGtkCList->internal_allocation.x = (*env)->GetShortField(env, lpObject, lpGtkCListFc->internal_allocation_x);
+ lpGtkCList->internal_allocation.y = (*env)->GetShortField(env, lpObject, lpGtkCListFc->internal_allocation_y);
+ lpGtkCList->internal_allocation.width = (*env)->GetShortField(env, lpObject, lpGtkCListFc->internal_allocation_width);
+ lpGtkCList->internal_allocation.height = (*env)->GetShortField(env, lpObject, lpGtkCListFc->internal_allocation_height);
+ lpGtkCList->rows = (*env)->GetIntField(env, lpObject, lpGtkCListFc->rows);
+ lpGtkCList->row_center_offset = (*env)->GetIntField(env, lpObject, lpGtkCListFc->row_center_offset);
+ lpGtkCList->row_height = (*env)->GetIntField(env, lpObject, lpGtkCListFc->row_height);
+ lpGtkCList->row_list = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->row_list);
+ lpGtkCList->row_list_end = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->row_list_end);
+ lpGtkCList->columns = (*env)->GetIntField(env, lpObject, lpGtkCListFc->columns);
+ lpGtkCList->column_title_area.x = (*env)->GetShortField(env, lpObject, lpGtkCListFc->column_title_area_x);
+ lpGtkCList->column_title_area.y = (*env)->GetShortField(env, lpObject, lpGtkCListFc->column_title_area_y);
+ lpGtkCList->column_title_area.width = (*env)->GetShortField(env, lpObject, lpGtkCListFc->column_title_area_width);
+ lpGtkCList->column_title_area.height = (*env)->GetShortField(env, lpObject, lpGtkCListFc->column_title_area_height);
+ lpGtkCList->title_window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->title_window);
+ lpGtkCList->column = (GtkCListColumn*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->column);
+ lpGtkCList->clist_window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->clist_window);
+ lpGtkCList->clist_window_width = (*env)->GetIntField(env, lpObject, lpGtkCListFc->clist_window_width);
+ lpGtkCList->clist_window_height = (*env)->GetIntField(env, lpObject, lpGtkCListFc->clist_window_height);
+ lpGtkCList->hoffset = (*env)->GetIntField(env, lpObject, lpGtkCListFc->hoffset);
+ lpGtkCList->voffset = (*env)->GetIntField(env, lpObject, lpGtkCListFc->voffset);
+ lpGtkCList->shadow_type = (*env)->GetIntField(env, lpObject, lpGtkCListFc->shadow_type);
+ lpGtkCList->selection_mode = (*env)->GetIntField(env, lpObject, lpGtkCListFc->selection_mode);
+ lpGtkCList->selection = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->selection);
+ lpGtkCList->selection_end = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->selection_end);
+ lpGtkCList->undo_selection = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->undo_selection);
+ lpGtkCList->undo_unselection = (GList*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->undo_unselection);
+ lpGtkCList->undo_anchor = (*env)->GetIntField(env, lpObject, lpGtkCListFc->undo_anchor);
+ lpGtkCList->button_actions[0] = (*env)->GetByteField(env, lpObject, lpGtkCListFc->button_actions0);
+ lpGtkCList->button_actions[1] = (*env)->GetByteField(env, lpObject, lpGtkCListFc->button_actions1);
+ lpGtkCList->button_actions[2] = (*env)->GetByteField(env, lpObject, lpGtkCListFc->button_actions2);
+ lpGtkCList->button_actions[3] = (*env)->GetByteField(env, lpObject, lpGtkCListFc->button_actions3);
+ lpGtkCList->button_actions[4] = (*env)->GetByteField(env, lpObject, lpGtkCListFc->button_actions4);
+ lpGtkCList->drag_button = (*env)->GetByteField(env, lpObject, lpGtkCListFc->drag_button);
+ lpGtkCList->click_cell.row = (*env)->GetIntField(env, lpObject, lpGtkCListFc->click_cell_row);
+ lpGtkCList->click_cell.column = (*env)->GetIntField(env, lpObject, lpGtkCListFc->click_cell_column);
+ lpGtkCList->hadjustment = (GtkAdjustment*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->hadjustment);
+ lpGtkCList->vadjustment = (GtkAdjustment*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->vadjustment);
+ lpGtkCList->xor_gc = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->xor_gc);
+ lpGtkCList->bg_gc = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->bg_gc);
+ lpGtkCList->bg_gc = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->bg_gc);
+ lpGtkCList->cursor_drag = (GdkCursor*)(*env)->GetIntField(env, lpObject, lpGtkCListFc->cursor_drag);
+ lpGtkCList->x_drag = (*env)->GetIntField(env, lpObject, lpGtkCListFc->x_drag);
+ lpGtkCList->focus_row = (*env)->GetIntField(env, lpObject, lpGtkCListFc->focus_row);
+ lpGtkCList->anchor = (*env)->GetIntField(env, lpObject, lpGtkCListFc->anchor);
+ lpGtkCList->anchor_state = (*env)->GetIntField(env, lpObject, lpGtkCListFc->anchor_state);
+ lpGtkCList->drag_pos = (*env)->GetIntField(env, lpObject, lpGtkCListFc->drag_pos);
+ lpGtkCList->htimer = (*env)->GetIntField(env, lpObject, lpGtkCListFc->htimer);
+ lpGtkCList->vtimer = (*env)->GetIntField(env, lpObject, lpGtkCListFc->vtimer);
+ lpGtkCList->sort_type = (*env)->GetIntField(env, lpObject, lpGtkCListFc->sort_type);
+ lpGtkCList->compare = (GtkCListCompareFunc)(*env)->GetIntField(env, lpObject, lpGtkCListFc->compare);
+ lpGtkCList->sort_column = (*env)->GetIntField(env, lpObject, lpGtkCListFc->sort_column);
+}
+
+void setGtkCListFields(JNIEnv *env, jobject lpObject, GtkCList *lpGtkCList, GtkCList_FID_CACHE *lpGtkCListFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkContainerFields(env, lpObject, &lpGtkCList->container, &PGLOB(GtkContainerFc));
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->clist_flags, (jshort)lpGtkCList->flags);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->row_mem_chunk, (jint)lpGtkCList->row_mem_chunk);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->cell_mem_chunk, (jint)lpGtkCList->cell_mem_chunk);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->freeze_count, (jint)lpGtkCList->freeze_count);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->internal_allocation_x, (jshort)lpGtkCList->internal_allocation.x);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->internal_allocation_y, (jshort)lpGtkCList->internal_allocation.y);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->internal_allocation_width, (jshort)lpGtkCList->internal_allocation.width);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->internal_allocation_height, (jshort)lpGtkCList->internal_allocation.height);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->rows, (jint)lpGtkCList->rows);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->row_center_offset, (jint)lpGtkCList->row_center_offset);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->row_height, (jint)lpGtkCList->row_height);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->row_list, (jint)lpGtkCList->row_list);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->row_list_end, (jint)lpGtkCList->row_list_end);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->columns, (jint)lpGtkCList->columns);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->column_title_area_x, (jshort)lpGtkCList->column_title_area.x);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->column_title_area_y, (jshort)lpGtkCList->column_title_area.y);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->column_title_area_width, (jshort)lpGtkCList->column_title_area.width);
+ (*env)->SetShortField(env, lpObject, lpGtkCListFc->column_title_area_height, (jshort)lpGtkCList->column_title_area.height);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->title_window, (jint)lpGtkCList->title_window);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->column, (jint)lpGtkCList->column);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->clist_window, (jint)lpGtkCList->clist_window);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->clist_window_width, (jint)lpGtkCList->clist_window_width);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->clist_window_height, (jint)lpGtkCList->clist_window_height);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->hoffset, (jint)lpGtkCList->hoffset);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->voffset, (jint)lpGtkCList->voffset);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->shadow_type, (jint)lpGtkCList->shadow_type);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->selection_mode, (jint)lpGtkCList->selection_mode);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->selection, (jint)lpGtkCList->selection);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->selection_end, (jint)lpGtkCList->selection_end);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->undo_selection, (jint)lpGtkCList->undo_selection);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->undo_unselection, (jint)lpGtkCList->undo_unselection);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->undo_anchor, (jint)lpGtkCList->undo_anchor);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->button_actions0, (jbyte)lpGtkCList->button_actions[0]);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->button_actions1, (jbyte)lpGtkCList->button_actions[1]);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->button_actions2, (jbyte)lpGtkCList->button_actions[2]);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->button_actions3, (jbyte)lpGtkCList->button_actions[3]);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->button_actions4, (jbyte)lpGtkCList->button_actions[4]);
+ (*env)->SetByteField(env, lpObject, lpGtkCListFc->drag_button, (jbyte)lpGtkCList->drag_button);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->click_cell_row, (jint)lpGtkCList->click_cell.row);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->click_cell_column, (jint)lpGtkCList->click_cell.column);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->hadjustment, (jint)lpGtkCList->hadjustment);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->vadjustment, (jint)lpGtkCList->vadjustment);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->xor_gc, (jint)lpGtkCList->xor_gc);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->bg_gc, (jint)lpGtkCList->bg_gc);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->bg_gc, (jint)lpGtkCList->bg_gc);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->cursor_drag, (jint)lpGtkCList->cursor_drag);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->x_drag, (jint)lpGtkCList->x_drag);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->focus_row, (jint)lpGtkCList->focus_row);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->anchor, (jint)lpGtkCList->anchor);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->anchor_state, (jint)lpGtkCList->anchor_state);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->drag_pos, (jint)lpGtkCList->drag_pos);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->htimer, (jint)lpGtkCList->htimer);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->vtimer, (jint)lpGtkCList->vtimer);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->sort_type, (jint)lpGtkCList->sort_type);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->compare, (jint)lpGtkCList->compare);
+ (*env)->SetIntField(env, lpObject, lpGtkCListFc->sort_column, (jint)lpGtkCList->sort_column);
+}
+
+void getGtkColorSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkColorSelectionDialog *lpGtkColorSelectionDialog, GtkColorSelectionDialog_FID_CACHE *lpGtkColorSelectionDialogFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWindowFields(env, lpObject, &lpGtkColorSelectionDialog->window, &PGLOB(GtkWindowFc));
+ lpGtkColorSelectionDialog->colorsel = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->colorsel);
+ lpGtkColorSelectionDialog->main_vbox = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->main_vbox);
+ lpGtkColorSelectionDialog->ok_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->ok_button);
+ lpGtkColorSelectionDialog->reset_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->reset_button);
+ lpGtkColorSelectionDialog->cancel_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->cancel_button);
+ lpGtkColorSelectionDialog->help_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkColorSelectionDialogFc->help_button);
+}
+
+void setGtkColorSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkColorSelectionDialog *lpGtkColorSelectionDialog, GtkColorSelectionDialog_FID_CACHE *lpGtkColorSelectionDialogFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWindowFields(env, lpObject, &lpGtkColorSelectionDialog->window, &PGLOB(GtkWindowFc));
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->colorsel, (jint)lpGtkColorSelectionDialog->colorsel);
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->main_vbox, (jint)lpGtkColorSelectionDialog->main_vbox);
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->ok_button, (jint)lpGtkColorSelectionDialog->ok_button);
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->reset_button, (jint)lpGtkColorSelectionDialog->reset_button);
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->cancel_button, (jint)lpGtkColorSelectionDialog->cancel_button);
+ (*env)->SetIntField(env, lpObject, lpGtkColorSelectionDialogFc->help_button, (jint)lpGtkColorSelectionDialog->help_button);
+}
+
+void getGtkComboFields(JNIEnv *env, jobject lpObject, GtkCombo *lpGtkCombo, GtkCombo_FID_CACHE *lpGtkComboFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkHBoxFields(env, lpObject, &lpGtkCombo->hbox, &PGLOB(GtkHBoxFc));
+ lpGtkCombo->entry = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkComboFc->entry);
+ lpGtkCombo->button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkComboFc->button);
+ lpGtkCombo->popup = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkComboFc->popup);
+ lpGtkCombo->popwin = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkComboFc->popwin);
+ lpGtkCombo->list = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkComboFc->list);
+ lpGtkCombo->entry_change_id = (*env)->GetIntField(env, lpObject, lpGtkComboFc->entry_change_id);
+ lpGtkCombo->list_change_id = (*env)->GetIntField(env, lpObject, lpGtkComboFc->list_change_id);
+ lpGtkCombo->value_in_list = (*env)->GetIntField(env, lpObject, lpGtkComboFc->value_in_list);
+ lpGtkCombo->ok_if_empty = (*env)->GetIntField(env, lpObject, lpGtkComboFc->ok_if_empty);
+ lpGtkCombo->case_sensitive = (*env)->GetIntField(env, lpObject, lpGtkComboFc->case_sensitive);
+ lpGtkCombo->use_arrows = (*env)->GetIntField(env, lpObject, lpGtkComboFc->use_arrows);
+ lpGtkCombo->use_arrows_always = (*env)->GetIntField(env, lpObject, lpGtkComboFc->use_arrows_always);
+ lpGtkCombo->current_button = (*env)->GetShortField(env, lpObject, lpGtkComboFc->current_button);
+ lpGtkCombo->activate_id = (*env)->GetIntField(env, lpObject, lpGtkComboFc->activate_id);
+}
+
+void setGtkComboFields(JNIEnv *env, jobject lpObject, GtkCombo *lpGtkCombo, GtkCombo_FID_CACHE *lpGtkComboFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkHBoxFields(env, lpObject, &lpGtkCombo->hbox, &PGLOB(GtkHBoxFc));
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->entry, (jint)lpGtkCombo->entry);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->button, (jint)lpGtkCombo->button);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->popup, (jint)lpGtkCombo->popup);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->popwin, (jint)lpGtkCombo->popwin);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->list, (jint)lpGtkCombo->list);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->entry_change_id, (jint)lpGtkCombo->entry_change_id);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->list_change_id, (jint)lpGtkCombo->list_change_id);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->value_in_list, (jint)lpGtkCombo->value_in_list);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->ok_if_empty, (jint)lpGtkCombo->ok_if_empty);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->case_sensitive, (jint)lpGtkCombo->case_sensitive);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->use_arrows, (jint)lpGtkCombo->use_arrows);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->use_arrows_always, (jint)lpGtkCombo->use_arrows_always);
+ (*env)->SetShortField(env, lpObject, lpGtkComboFc->current_button, (jshort)lpGtkCombo->current_button);
+ (*env)->SetIntField(env, lpObject, lpGtkComboFc->activate_id, (jint)lpGtkCombo->activate_id);
+}
+
+void getGtkContainerFields(JNIEnv *env, jobject lpObject, GtkContainer *lpGtkContainer, GtkContainer_FID_CACHE *lpGtkContainerFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWidgetFields(env, lpObject, &lpGtkContainer->widget, &PGLOB(GtkWidgetFc));
+ lpGtkContainer->focus_child = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkContainerFc->focus_child);
+ lpGtkContainer->border_width = (*env)->GetIntField(env, lpObject, lpGtkContainerFc->border_width);
+ lpGtkContainer->need_resize = (*env)->GetIntField(env, lpObject, lpGtkContainerFc->need_resize);
+ lpGtkContainer->resize_mode = (*env)->GetIntField(env, lpObject, lpGtkContainerFc->resize_mode);
+ lpGtkContainer->resize_widgets = (GSList*)(*env)->GetIntField(env, lpObject, lpGtkContainerFc->resize_widgets);
+}
+
+void setGtkContainerFields(JNIEnv *env, jobject lpObject, GtkContainer *lpGtkContainer, GtkContainer_FID_CACHE *lpGtkContainerFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWidgetFields(env, lpObject, &lpGtkContainer->widget, &PGLOB(GtkWidgetFc));
+ (*env)->SetIntField(env, lpObject, lpGtkContainerFc->focus_child, (jint)lpGtkContainer->focus_child);
+ (*env)->SetIntField(env, lpObject, lpGtkContainerFc->border_width, (jint)lpGtkContainer->border_width);
+ (*env)->SetIntField(env, lpObject, lpGtkContainerFc->need_resize, (jint)lpGtkContainer->need_resize);
+ (*env)->SetIntField(env, lpObject, lpGtkContainerFc->resize_mode, (jint)lpGtkContainer->resize_mode);
+ (*env)->SetIntField(env, lpObject, lpGtkContainerFc->resize_widgets, (jint)lpGtkContainer->resize_widgets);
+}
+
+void getGtkEditableFields(JNIEnv *env, jobject lpObject, GtkEditable *lpGtkEditable, GtkEditable_FID_CACHE *lpGtkEditableFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWidgetFields(env, lpObject, &lpGtkEditable->widget, &PGLOB(GtkWidgetFc));
+ lpGtkEditable->current_pos = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->current_pos);
+ lpGtkEditable->selection_start_pos = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->selection_start_pos);
+ lpGtkEditable->selection_end_pos = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->selection_end_pos);
+ lpGtkEditable->has_selection = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->has_selection);
+ lpGtkEditable->editable = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->editable);
+ lpGtkEditable->visible = (*env)->GetIntField(env, lpObject, lpGtkEditableFc->visible);
+ lpGtkEditable->ic = (GdkIC*)(*env)->GetIntField(env, lpObject, lpGtkEditableFc->ic);
+ lpGtkEditable->ic_attr = (GdkICAttr*)(*env)->GetIntField(env, lpObject, lpGtkEditableFc->ic_attr);
+ lpGtkEditable->clipboard_text = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkEditableFc->clipboard_text);
+}
+
+void setGtkEditableFields(JNIEnv *env, jobject lpObject, GtkEditable *lpGtkEditable, GtkEditable_FID_CACHE *lpGtkEditableFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWidgetFields(env, lpObject, &lpGtkEditable->widget, &PGLOB(GtkWidgetFc));
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->current_pos, (jint)lpGtkEditable->current_pos);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->selection_start_pos, (jint)lpGtkEditable->selection_start_pos);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->selection_end_pos, (jint)lpGtkEditable->selection_end_pos);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->has_selection, (jint)lpGtkEditable->has_selection);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->editable, (jint)lpGtkEditable->editable);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->visible, (jint)lpGtkEditable->visible);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->ic, (jint)lpGtkEditable->ic);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->ic_attr, (jint)lpGtkEditable->ic_attr);
+ (*env)->SetIntField(env, lpObject, lpGtkEditableFc->clipboard_text, (jint)lpGtkEditable->clipboard_text);
+}
+
+void getGtkTextFields(JNIEnv *env, jobject lpObject, GtkText *lpGtkText, GtkText_FID_CACHE *lpGtkTextFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkEditableFields(env, lpObject, &lpGtkText->editable, &PGLOB(GtkEditableFc));
+
+ lpGtkText->first_line_start_index = (*env)->GetIntField(env, lpObject, lpGtkTextFc->first_line_start_index);
+ lpGtkText->first_onscreen_hor_pixel = (*env)->GetIntField(env, lpObject, lpGtkTextFc->first_onscreen_hor_pixel);
+ lpGtkText->first_onscreen_ver_pixel = (*env)->GetIntField(env, lpObject, lpGtkTextFc->first_onscreen_ver_pixel);
+ lpGtkText->default_tab_width = (*env)->GetIntField(env, lpObject, lpGtkTextFc->default_tab_width);
+ lpGtkText->cursor_pos_x = (*env)->GetIntField(env, lpObject, lpGtkTextFc->cursor_pos_x);
+ lpGtkText->cursor_pos_y = (*env)->GetIntField(env, lpObject, lpGtkTextFc->cursor_pos_y);
+ lpGtkText->cursor_virtual_x = (*env)->GetIntField(env, lpObject, lpGtkTextFc->cursor_virtual_x);
+}
+
+void setGtkTextFields(JNIEnv *env, jobject lpObject, GtkText *lpGtkText, GtkText_FID_CACHE *lpGtkTextFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkEditableFields(env, lpObject, &lpGtkText->editable, &PGLOB(GtkEditableFc));
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->first_line_start_index, (jint)lpGtkText->first_line_start_index);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->first_onscreen_hor_pixel, (jint)lpGtkText->first_onscreen_hor_pixel);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->first_onscreen_ver_pixel, (jint)lpGtkText->first_onscreen_ver_pixel);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->default_tab_width, (jint)lpGtkText->default_tab_width);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->cursor_pos_x, (jint)lpGtkText->cursor_pos_x);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->cursor_pos_y, (jint)lpGtkText->cursor_pos_y);
+ (*env)->SetIntField(env, lpObject, lpGtkTextFc->cursor_virtual_x, (jint)lpGtkText->cursor_virtual_x);
+}
+
+void getGtkFileSelectionFields(JNIEnv *env, jobject lpObject, GtkFileSelection *lpGtkFileSelection, GtkFileSelection_FID_CACHE *lpGtkFileSelectionFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWindowFields(env, lpObject, &lpGtkFileSelection->window, &PGLOB(GtkWindowFc));
+ lpGtkFileSelection->dir_list = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->dir_list);
+ lpGtkFileSelection->file_list = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->file_list);
+ lpGtkFileSelection->selection_entry = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->selection_entry);
+ lpGtkFileSelection->selection_text = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->selection_text);
+ lpGtkFileSelection->main_vbox = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->main_vbox);
+ lpGtkFileSelection->ok_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->ok_button);
+ lpGtkFileSelection->cancel_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->cancel_button);
+ lpGtkFileSelection->help_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->help_button);
+ lpGtkFileSelection->history_pulldown = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->history_pulldown);
+ lpGtkFileSelection->history_menu = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->history_menu);
+ lpGtkFileSelection->history_list = (GList*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->history_list);
+ lpGtkFileSelection->fileop_dialog = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_dialog);
+ lpGtkFileSelection->fileop_entry = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_entry);
+ lpGtkFileSelection->fileop_file = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_file);
+ lpGtkFileSelection->cmpl_state = (gpointer)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->cmpl_state);
+ lpGtkFileSelection->fileop_c_dir = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_c_dir);
+ lpGtkFileSelection->fileop_del_file = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_del_file);
+ lpGtkFileSelection->fileop_ren_file = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_ren_file);
+ lpGtkFileSelection->button_area = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->button_area);
+ lpGtkFileSelection->action_area = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFileSelectionFc->action_area);
+}
+
+void setGtkFileSelectionFields(JNIEnv *env, jobject lpObject, GtkFileSelection *lpGtkFileSelection, GtkFileSelection_FID_CACHE *lpGtkFileSelectionFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWindowFields(env, lpObject, &lpGtkFileSelection->window, &PGLOB(GtkWindowFc));
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->dir_list, (jint)lpGtkFileSelection->dir_list);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->file_list, (jint)lpGtkFileSelection->file_list);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->selection_entry, (jint)lpGtkFileSelection->selection_entry);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->selection_text, (jint)lpGtkFileSelection->selection_text);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->main_vbox, (jint)lpGtkFileSelection->main_vbox);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->ok_button, (jint)lpGtkFileSelection->ok_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->cancel_button, (jint)lpGtkFileSelection->cancel_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->help_button, (jint)lpGtkFileSelection->help_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->history_pulldown, (jint)lpGtkFileSelection->history_pulldown);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->history_menu, (jint)lpGtkFileSelection->history_menu);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->history_list, (jint)lpGtkFileSelection->history_list);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_dialog, (jint)lpGtkFileSelection->fileop_dialog);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_entry, (jint)lpGtkFileSelection->fileop_entry);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_file, (jint)lpGtkFileSelection->fileop_file);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->cmpl_state, (jint)lpGtkFileSelection->cmpl_state);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_c_dir, (jint)lpGtkFileSelection->fileop_c_dir);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_del_file, (jint)lpGtkFileSelection->fileop_del_file);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->fileop_ren_file, (jint)lpGtkFileSelection->fileop_ren_file);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->button_area, (jint)lpGtkFileSelection->button_area);
+ (*env)->SetIntField(env, lpObject, lpGtkFileSelectionFc->action_area, (jint)lpGtkFileSelection->action_area);
+}
+
+void getGtkFontSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkFontSelectionDialog *lpGtkFontSelectionDialog, GtkFontSelectionDialog_FID_CACHE *lpGtkFontSelectionDialogFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWindowFields(env, lpObject, &lpGtkFontSelectionDialog->window, &PGLOB(GtkWindowFc));
+ lpGtkFontSelectionDialog->fontsel = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->fontsel);
+ lpGtkFontSelectionDialog->main_vbox = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->main_vbox);
+ lpGtkFontSelectionDialog->action_area = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->action_area);
+ lpGtkFontSelectionDialog->ok_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->ok_button);
+ lpGtkFontSelectionDialog->apply_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->apply_button);
+ lpGtkFontSelectionDialog->cancel_button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->cancel_button);
+ lpGtkFontSelectionDialog->dialog_width = (*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->dialog_width);
+ lpGtkFontSelectionDialog->auto_resize = (*env)->GetIntField(env, lpObject, lpGtkFontSelectionDialogFc->auto_resize);
+}
+
+void setGtkFontSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkFontSelectionDialog *lpGtkFontSelectionDialog, GtkFontSelectionDialog_FID_CACHE *lpGtkFontSelectionDialogFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWindowFields(env, lpObject, &lpGtkFontSelectionDialog->window, &PGLOB(GtkWindowFc));
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->fontsel, (jint)lpGtkFontSelectionDialog->fontsel);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->main_vbox, (jint)lpGtkFontSelectionDialog->main_vbox);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->action_area, (jint)lpGtkFontSelectionDialog->action_area);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->ok_button, (jint)lpGtkFontSelectionDialog->ok_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->apply_button, (jint)lpGtkFontSelectionDialog->apply_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->cancel_button, (jint)lpGtkFontSelectionDialog->cancel_button);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->dialog_width, (jint)lpGtkFontSelectionDialog->dialog_width);
+ (*env)->SetIntField(env, lpObject, lpGtkFontSelectionDialogFc->auto_resize, (jint)lpGtkFontSelectionDialog->auto_resize);
+}
+
+void getGtkHBoxFields(JNIEnv *env, jobject lpObject, GtkHBox *lpGtkHBox, GtkHBox_FID_CACHE *lpGtkHBoxFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkBoxFields(env, lpObject, &lpGtkHBox->box, &PGLOB(GtkBoxFc));
+}
+
+void setGtkHBoxFields(JNIEnv *env, jobject lpObject, GtkHBox *lpGtkHBox, GtkHBox_FID_CACHE *lpGtkHBoxFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkBoxFields(env, lpObject, &lpGtkHBox->box, &PGLOB(GtkBoxFc));
+}
+
+void getGtkObjectFields(JNIEnv *env, jobject lpObject, GtkObject *lpGtkObject, GtkObject_FID_CACHE *lpGtkObjectFc)
+{
+ lpGtkObject->klass = (GtkObjectClass*)(*env)->GetIntField(env, lpObject, lpGtkObjectFc->klass);
+ lpGtkObject->flags = (*env)->GetIntField(env, lpObject, lpGtkObjectFc->flags);
+ lpGtkObject->ref_count = (*env)->GetIntField(env, lpObject, lpGtkObjectFc->ref_count);
+ lpGtkObject->object_data = (GData*)(*env)->GetIntField(env, lpObject, lpGtkObjectFc->object_data);
+}
+
+void setGtkObjectFields(JNIEnv *env, jobject lpObject, GtkObject *lpGtkObject, GtkObject_FID_CACHE *lpGtkObjectFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGtkObjectFc->klass, (jint)lpGtkObject->klass);
+ (*env)->SetIntField(env, lpObject, lpGtkObjectFc->flags, (jint)lpGtkObject->flags);
+ (*env)->SetIntField(env, lpObject, lpGtkObjectFc->ref_count, (jint)lpGtkObject->ref_count);
+ (*env)->SetIntField(env, lpObject, lpGtkObjectFc->object_data, (jint)lpGtkObject->object_data);
+}
+
+void getGtkProgressFields(JNIEnv *env, jobject lpObject, GtkProgress *lpGtkProgress, GtkProgress_FID_CACHE *lpGtkProgressFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkWidgetFields(env, lpObject, &lpGtkProgress->widget, &PGLOB(GtkWidgetFc));
+ lpGtkProgress->adjustment = (GtkAdjustment*)(*env)->GetIntField(env, lpObject, lpGtkProgressFc->adjustment);
+ lpGtkProgress->offscreen_pixmap = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkProgressFc->offscreen_pixmap);
+ lpGtkProgress->format = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkProgressFc->format);
+ lpGtkProgress->x_align = (*env)->GetFloatField(env, lpObject, lpGtkProgressFc->x_align);
+ lpGtkProgress->y_align = (*env)->GetFloatField(env, lpObject, lpGtkProgressFc->y_align);
+ lpGtkProgress->show_text = (*env)->GetIntField(env, lpObject, lpGtkProgressFc->show_text);
+ lpGtkProgress->activity_mode = (*env)->GetIntField(env, lpObject, lpGtkProgressFc->activity_mode);
+}
+
+void setGtkProgressFields(JNIEnv *env, jobject lpObject, GtkProgress *lpGtkProgress, GtkProgress_FID_CACHE *lpGtkProgressFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkWidgetFields(env, lpObject, &lpGtkProgress->widget, &PGLOB(GtkWidgetFc));
+ (*env)->SetIntField(env, lpObject, lpGtkProgressFc->adjustment, (jint)lpGtkProgress->adjustment);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressFc->offscreen_pixmap, (jint)lpGtkProgress->offscreen_pixmap);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressFc->format, (jint)lpGtkProgress->format);
+ (*env)->SetFloatField(env, lpObject, lpGtkProgressFc->x_align, (jfloat)lpGtkProgress->x_align);
+ (*env)->SetFloatField(env, lpObject, lpGtkProgressFc->y_align, (jfloat)lpGtkProgress->y_align);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressFc->show_text, (jint)lpGtkProgress->show_text);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressFc->activity_mode, (jint)lpGtkProgress->activity_mode);
+}
+
+void getGtkProgressBarFields(JNIEnv *env, jobject lpObject, GtkProgressBar *lpGtkProgressBar, GtkProgressBar_FID_CACHE *lpGtkProgressBarFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkProgressFields(env, lpObject, &lpGtkProgressBar->progress, &PGLOB(GtkProgressFc));
+ lpGtkProgressBar->bar_style = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->bar_style);
+ lpGtkProgressBar->orientation = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->orientation);
+ lpGtkProgressBar->blocks = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->blocks);
+ lpGtkProgressBar->in_block = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->in_block);
+ lpGtkProgressBar->activity_pos = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->activity_pos);
+ lpGtkProgressBar->activity_step = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->activity_step);
+ lpGtkProgressBar->activity_blocks = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->activity_blocks);
+ lpGtkProgressBar->activity_dir = (*env)->GetIntField(env, lpObject, lpGtkProgressBarFc->activity_dir);
+}
+
+void setGtkProgressBarFields(JNIEnv *env, jobject lpObject, GtkProgressBar *lpGtkProgressBar, GtkProgressBar_FID_CACHE *lpGtkProgressBarFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkProgressFields(env, lpObject, &lpGtkProgressBar->progress, &PGLOB(GtkProgressFc));
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->bar_style, (jint)lpGtkProgressBar->bar_style);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->orientation, (jint)lpGtkProgressBar->orientation);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->blocks, (jint)lpGtkProgressBar->blocks);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->in_block, (jint)lpGtkProgressBar->in_block);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->activity_pos, (jint)lpGtkProgressBar->activity_pos);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->activity_step, (jint)lpGtkProgressBar->activity_step);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->activity_blocks, (jint)lpGtkProgressBar->activity_blocks);
+ (*env)->SetIntField(env, lpObject, lpGtkProgressBarFc->activity_dir, (jint)lpGtkProgressBar->activity_dir);
+}
+
+void getGtkRequisitionFields(JNIEnv *env, jobject lpObject, GtkRequisition *lpGtkRequisition, GtkRequisition_FID_CACHE *lpGtkRequisitionFc)
+{
+ lpGtkRequisition->width = (*env)->GetShortField(env, lpObject, lpGtkRequisitionFc->width);
+ lpGtkRequisition->height = (*env)->GetShortField(env, lpObject, lpGtkRequisitionFc->height);
+}
+
+void setGtkRequisitionFields(JNIEnv *env, jobject lpObject, GtkRequisition *lpGtkRequisition, GtkRequisition_FID_CACHE *lpGtkRequisitionFc)
+{
+ (*env)->SetShortField(env, lpObject, lpGtkRequisitionFc->width, lpGtkRequisition->width);
+ (*env)->SetShortField(env, lpObject, lpGtkRequisitionFc->height, lpGtkRequisition->height);
+}
+
+void getGtkStyleFields(JNIEnv *env, jobject lpObject, GtkStyle *lpGtkStyle, GtkStyle_FID_CACHE *lpGtkStyleFc)
+{
+ lpGtkStyle->klass = (GtkStyleClass*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->klass);
+ lpGtkStyle->fg[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg0_pixel);
+ lpGtkStyle->fg[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg0_red);
+ lpGtkStyle->fg[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg0_green);
+ lpGtkStyle->fg[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg0_blue);
+ lpGtkStyle->fg[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg1_pixel);
+ lpGtkStyle->fg[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg1_red);
+ lpGtkStyle->fg[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg1_green);
+ lpGtkStyle->fg[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg1_blue);
+ lpGtkStyle->fg[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg2_pixel);
+ lpGtkStyle->fg[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg2_red);
+ lpGtkStyle->fg[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg2_green);
+ lpGtkStyle->fg[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg2_blue);
+ lpGtkStyle->fg[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg3_pixel);
+ lpGtkStyle->fg[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg3_red);
+ lpGtkStyle->fg[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg3_green);
+ lpGtkStyle->fg[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg3_blue);
+ lpGtkStyle->fg[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg4_pixel);
+ lpGtkStyle->fg[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg4_red);
+ lpGtkStyle->fg[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg4_green);
+ lpGtkStyle->fg[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->fg4_blue);
+ lpGtkStyle->bg[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg0_pixel);
+ lpGtkStyle->bg[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg0_red);
+ lpGtkStyle->bg[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg0_green);
+ lpGtkStyle->bg[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg0_blue);
+ lpGtkStyle->bg[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg1_pixel);
+ lpGtkStyle->bg[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg1_red);
+ lpGtkStyle->bg[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg1_green);
+ lpGtkStyle->bg[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg1_blue);
+ lpGtkStyle->bg[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg2_pixel);
+ lpGtkStyle->bg[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg2_red);
+ lpGtkStyle->bg[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg2_green);
+ lpGtkStyle->bg[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg2_blue);
+ lpGtkStyle->bg[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg3_pixel);
+ lpGtkStyle->bg[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg3_red);
+ lpGtkStyle->bg[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg3_green);
+ lpGtkStyle->bg[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg3_blue);
+ lpGtkStyle->bg[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg4_pixel);
+ lpGtkStyle->bg[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg4_red);
+ lpGtkStyle->bg[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg4_green);
+ lpGtkStyle->bg[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->bg4_blue);
+ lpGtkStyle->light[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->light0_pixel);
+ lpGtkStyle->light[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light0_red);
+ lpGtkStyle->light[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light0_green);
+ lpGtkStyle->light[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light0_blue);
+ lpGtkStyle->light[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->light1_pixel);
+ lpGtkStyle->light[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light1_red);
+ lpGtkStyle->light[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light1_green);
+ lpGtkStyle->light[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light1_blue);
+ lpGtkStyle->light[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->light2_pixel);
+ lpGtkStyle->light[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light2_red);
+ lpGtkStyle->light[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light2_green);
+ lpGtkStyle->light[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light2_blue);
+ lpGtkStyle->light[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->light3_pixel);
+ lpGtkStyle->light[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light3_red);
+ lpGtkStyle->light[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light3_green);
+ lpGtkStyle->light[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light3_blue);
+ lpGtkStyle->light[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->light4_pixel);
+ lpGtkStyle->light[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light4_red);
+ lpGtkStyle->light[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light4_green);
+ lpGtkStyle->light[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->light4_blue);
+ lpGtkStyle->dark[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark0_pixel);
+ lpGtkStyle->dark[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark0_red);
+ lpGtkStyle->dark[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark0_green);
+ lpGtkStyle->dark[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark0_blue);
+ lpGtkStyle->dark[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark1_pixel);
+ lpGtkStyle->dark[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark1_red);
+ lpGtkStyle->dark[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark1_green);
+ lpGtkStyle->dark[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark1_blue);
+ lpGtkStyle->dark[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark2_pixel);
+ lpGtkStyle->dark[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark2_red);
+ lpGtkStyle->dark[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark2_green);
+ lpGtkStyle->dark[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark2_blue);
+ lpGtkStyle->dark[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark3_pixel);
+ lpGtkStyle->dark[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark3_red);
+ lpGtkStyle->dark[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark3_green);
+ lpGtkStyle->dark[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark3_blue);
+ lpGtkStyle->dark[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark4_pixel);
+ lpGtkStyle->dark[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark4_red);
+ lpGtkStyle->dark[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark4_green);
+ lpGtkStyle->dark[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->dark4_blue);
+ lpGtkStyle->mid[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid0_pixel);
+ lpGtkStyle->mid[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid0_red);
+ lpGtkStyle->mid[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid0_green);
+ lpGtkStyle->mid[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid0_blue);
+ lpGtkStyle->mid[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid1_pixel);
+ lpGtkStyle->mid[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid1_red);
+ lpGtkStyle->mid[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid1_green);
+ lpGtkStyle->mid[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid1_blue);
+ lpGtkStyle->mid[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid2_pixel);
+ lpGtkStyle->mid[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid2_red);
+ lpGtkStyle->mid[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid2_green);
+ lpGtkStyle->mid[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid2_blue);
+ lpGtkStyle->mid[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid3_pixel);
+ lpGtkStyle->mid[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid3_red);
+ lpGtkStyle->mid[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid3_green);
+ lpGtkStyle->mid[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid3_blue);
+ lpGtkStyle->mid[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid4_pixel);
+ lpGtkStyle->mid[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid4_red);
+ lpGtkStyle->mid[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid4_green);
+ lpGtkStyle->mid[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->mid4_blue);
+ lpGtkStyle->text[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->text0_pixel);
+ lpGtkStyle->text[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text0_red);
+ lpGtkStyle->text[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text0_green);
+ lpGtkStyle->text[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text0_blue);
+ lpGtkStyle->text[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->text1_pixel);
+ lpGtkStyle->text[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text1_red);
+ lpGtkStyle->text[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text1_green);
+ lpGtkStyle->text[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text1_blue);
+ lpGtkStyle->text[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->text2_pixel);
+ lpGtkStyle->text[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text2_red);
+ lpGtkStyle->text[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text2_green);
+ lpGtkStyle->text[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text2_blue);
+ lpGtkStyle->text[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->text3_pixel);
+ lpGtkStyle->text[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text3_red);
+ lpGtkStyle->text[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text3_green);
+ lpGtkStyle->text[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text3_blue);
+ lpGtkStyle->text[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->text4_pixel);
+ lpGtkStyle->text[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text4_red);
+ lpGtkStyle->text[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text4_green);
+ lpGtkStyle->text[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->text4_blue);
+ lpGtkStyle->base[0].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->base0_pixel);
+ lpGtkStyle->base[0].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base0_red);
+ lpGtkStyle->base[0].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base0_green);
+ lpGtkStyle->base[0].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base0_blue);
+ lpGtkStyle->base[1].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->base1_pixel);
+ lpGtkStyle->base[1].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base1_red);
+ lpGtkStyle->base[1].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base1_green);
+ lpGtkStyle->base[1].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base1_blue);
+ lpGtkStyle->base[2].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->base2_pixel);
+ lpGtkStyle->base[2].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base2_red);
+ lpGtkStyle->base[2].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base2_green);
+ lpGtkStyle->base[2].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base2_blue);
+ lpGtkStyle->base[3].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->base3_pixel);
+ lpGtkStyle->base[3].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base3_red);
+ lpGtkStyle->base[3].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base3_green);
+ lpGtkStyle->base[3].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base3_blue);
+ lpGtkStyle->base[4].pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->base4_pixel);
+ lpGtkStyle->base[4].red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base4_red);
+ lpGtkStyle->base[4].green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base4_green);
+ lpGtkStyle->base[4].blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->base4_blue);
+ lpGtkStyle->black.pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->black_pixel);
+ lpGtkStyle->black.red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->black_red);
+ lpGtkStyle->black.green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->black_green);
+ lpGtkStyle->black.blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->black_blue);
+ lpGtkStyle->white.pixel = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->white_pixel);
+ lpGtkStyle->white.red = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->white_red);
+ lpGtkStyle->white.green = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->white_green);
+ lpGtkStyle->white.blue = (*env)->GetShortField(env, lpObject, lpGtkStyleFc->white_blue);
+ lpGtkStyle->font = (GdkFont*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->font);
+ lpGtkStyle->fg_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg_gc0);
+ lpGtkStyle->fg_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg_gc1);
+ lpGtkStyle->fg_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg_gc2);
+ lpGtkStyle->fg_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg_gc3);
+ lpGtkStyle->fg_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->fg_gc4);
+ lpGtkStyle->bg_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_gc0);
+ lpGtkStyle->bg_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_gc1);
+ lpGtkStyle->bg_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_gc2);
+ lpGtkStyle->bg_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_gc3);
+ lpGtkStyle->bg_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_gc4);
+ lpGtkStyle->light_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->light_gc0);
+ lpGtkStyle->light_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->light_gc1);
+ lpGtkStyle->light_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->light_gc2);
+ lpGtkStyle->light_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->light_gc3);
+ lpGtkStyle->light_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->light_gc4);
+ lpGtkStyle->dark_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark_gc0);
+ lpGtkStyle->dark_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark_gc1);
+ lpGtkStyle->dark_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark_gc2);
+ lpGtkStyle->dark_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark_gc3);
+ lpGtkStyle->dark_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->dark_gc4);
+ lpGtkStyle->mid_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid_gc0);
+ lpGtkStyle->mid_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid_gc1);
+ lpGtkStyle->mid_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid_gc2);
+ lpGtkStyle->mid_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid_gc3);
+ lpGtkStyle->mid_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->mid_gc4);
+ lpGtkStyle->text_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->text_gc0);
+ lpGtkStyle->text_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->text_gc1);
+ lpGtkStyle->text_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->text_gc2);
+ lpGtkStyle->text_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->text_gc3);
+ lpGtkStyle->text_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->text_gc4);
+ lpGtkStyle->base_gc[0] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->base_gc0);
+ lpGtkStyle->base_gc[1] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->base_gc1);
+ lpGtkStyle->base_gc[2] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->base_gc2);
+ lpGtkStyle->base_gc[3] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->base_gc3);
+ lpGtkStyle->base_gc[4] = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->base_gc4);
+ lpGtkStyle->black_gc = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->black_gc);
+ lpGtkStyle->white_gc = (GdkGC*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->white_gc);
+ lpGtkStyle->bg_pixmap[0] = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap0);
+ lpGtkStyle->bg_pixmap[1] = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap1);
+ lpGtkStyle->bg_pixmap[2] = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap2);
+ lpGtkStyle->bg_pixmap[3] = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap3);
+ lpGtkStyle->bg_pixmap[4] = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap4);
+ lpGtkStyle->ref_count = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->ref_count);
+ lpGtkStyle->attach_count = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->attach_count);
+ lpGtkStyle->depth = (*env)->GetIntField(env, lpObject, lpGtkStyleFc->depth);
+ lpGtkStyle->colormap = (GdkColormap*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->colormap);
+ lpGtkStyle->engine = (GtkThemeEngine*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->engine);
+ lpGtkStyle->engine_data = (gpointer)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->engine_data);
+ lpGtkStyle->rc_style = (GtkRcStyle*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->rc_style);
+ lpGtkStyle->styles = (GSList*)(*env)->GetIntField(env, lpObject, lpGtkStyleFc->styles);
+}
+
+void setGtkStyleFields(JNIEnv *env, jobject lpObject, GtkStyle *lpGtkStyle, GtkStyle_FID_CACHE *lpGtkStyleFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->klass, (jint)lpGtkStyle->klass);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg0_pixel, (jint)lpGtkStyle->fg[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg0_red, (jshort)lpGtkStyle->fg[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg0_green, (jshort)lpGtkStyle->fg[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg0_blue, (jshort)lpGtkStyle->fg[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg1_pixel, (jint)lpGtkStyle->fg[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg1_red, (jshort)lpGtkStyle->fg[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg1_green, (jshort)lpGtkStyle->fg[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg1_blue, (jshort)lpGtkStyle->fg[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg2_pixel, (jint)lpGtkStyle->fg[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg2_red, (jshort)lpGtkStyle->fg[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg2_green, (jshort)lpGtkStyle->fg[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg2_blue, (jshort)lpGtkStyle->fg[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg3_pixel, (jint)lpGtkStyle->fg[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg3_red, (jshort)lpGtkStyle->fg[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg3_green, (jshort)lpGtkStyle->fg[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg3_blue, (jshort)lpGtkStyle->fg[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg4_pixel, (jint)lpGtkStyle->fg[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg4_red, (jshort)lpGtkStyle->fg[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg4_green, (jshort)lpGtkStyle->fg[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->fg4_blue, (jshort)lpGtkStyle->fg[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg0_pixel, (jint)lpGtkStyle->bg[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg0_red, (jshort)lpGtkStyle->bg[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg0_green, (jshort)lpGtkStyle->bg[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg0_blue, (jshort)lpGtkStyle->bg[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg1_pixel, (jint)lpGtkStyle->bg[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg1_red, (jshort)lpGtkStyle->bg[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg1_green, (jshort)lpGtkStyle->bg[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg1_blue, (jshort)lpGtkStyle->bg[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg2_pixel, (jint)lpGtkStyle->bg[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg2_red, (jshort)lpGtkStyle->bg[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg2_green, (jshort)lpGtkStyle->bg[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg2_blue, (jshort)lpGtkStyle->bg[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg3_pixel, (jint)lpGtkStyle->bg[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg3_red, (jshort)lpGtkStyle->bg[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg3_green, (jshort)lpGtkStyle->bg[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg3_blue, (jshort)lpGtkStyle->bg[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg4_pixel, (jint)lpGtkStyle->bg[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg4_red, (jshort)lpGtkStyle->bg[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg4_green, (jshort)lpGtkStyle->bg[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->bg4_blue, (jshort)lpGtkStyle->bg[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light0_pixel, (jint)lpGtkStyle->light[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light0_red, (jshort)lpGtkStyle->light[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light0_green, (jshort)lpGtkStyle->light[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light0_blue, (jshort)lpGtkStyle->light[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light1_pixel, (jint)lpGtkStyle->light[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light1_red, (jshort)lpGtkStyle->light[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light1_green, (jshort)lpGtkStyle->light[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light1_blue, (jshort)lpGtkStyle->light[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light2_pixel, (jint)lpGtkStyle->light[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light2_red, (jshort)lpGtkStyle->light[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light2_green, (jshort)lpGtkStyle->light[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light2_blue, (jshort)lpGtkStyle->light[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light3_pixel, (jint)lpGtkStyle->light[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light3_red, (jshort)lpGtkStyle->light[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light3_green, (jshort)lpGtkStyle->light[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light3_blue, (jshort)lpGtkStyle->light[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light4_pixel, (jint)lpGtkStyle->light[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light4_red, (jshort)lpGtkStyle->light[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light4_green, (jshort)lpGtkStyle->light[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->light4_blue, (jshort)lpGtkStyle->light[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark0_pixel, (jint)lpGtkStyle->dark[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark0_red, (jshort)lpGtkStyle->dark[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark0_green, (jshort)lpGtkStyle->dark[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark0_blue, (jshort)lpGtkStyle->dark[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark1_pixel, (jint)lpGtkStyle->dark[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark1_red, (jshort)lpGtkStyle->dark[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark1_green, (jshort)lpGtkStyle->dark[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark1_blue, (jshort)lpGtkStyle->dark[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark2_pixel, (jint)lpGtkStyle->dark[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark2_red, (jshort)lpGtkStyle->dark[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark2_green, (jshort)lpGtkStyle->dark[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark2_blue, (jshort)lpGtkStyle->dark[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark3_pixel, (jint)lpGtkStyle->dark[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark3_red, (jshort)lpGtkStyle->dark[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark3_green, (jshort)lpGtkStyle->dark[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark3_blue, (jshort)lpGtkStyle->dark[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark4_pixel, (jint)lpGtkStyle->dark[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark4_red, (jshort)lpGtkStyle->dark[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark4_green, (jshort)lpGtkStyle->dark[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->dark4_blue, (jshort)lpGtkStyle->dark[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid0_pixel, (jint)lpGtkStyle->mid[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid0_red, (jshort)lpGtkStyle->mid[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid0_green, (jshort)lpGtkStyle->mid[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid0_blue, (jshort)lpGtkStyle->mid[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid1_pixel, (jint)lpGtkStyle->mid[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid1_red, (jshort)lpGtkStyle->mid[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid1_green, (jshort)lpGtkStyle->mid[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid1_blue, (jshort)lpGtkStyle->mid[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid2_pixel, (jint)lpGtkStyle->mid[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid2_red, (jshort)lpGtkStyle->mid[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid2_green, (jshort)lpGtkStyle->mid[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid2_blue, (jshort)lpGtkStyle->mid[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid3_pixel, (jint)lpGtkStyle->mid[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid3_red, (jshort)lpGtkStyle->mid[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid3_green, (jshort)lpGtkStyle->mid[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid3_blue, (jshort)lpGtkStyle->mid[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid4_pixel, (jint)lpGtkStyle->mid[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid4_red, (jshort)lpGtkStyle->mid[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid4_green, (jshort)lpGtkStyle->mid[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->mid4_blue, (jshort)lpGtkStyle->mid[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text0_pixel, (jint)lpGtkStyle->text[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text0_red, (jshort)lpGtkStyle->text[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text0_green, (jshort)lpGtkStyle->text[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text0_blue, (jshort)lpGtkStyle->text[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text1_pixel, (jint)lpGtkStyle->text[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text1_red, (jshort)lpGtkStyle->text[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text1_green, (jshort)lpGtkStyle->text[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text1_blue, (jshort)lpGtkStyle->text[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text2_pixel, (jint)lpGtkStyle->text[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text2_red, (jshort)lpGtkStyle->text[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text2_green, (jshort)lpGtkStyle->text[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text2_blue, (jshort)lpGtkStyle->text[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text3_pixel, (jint)lpGtkStyle->text[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text3_red, (jshort)lpGtkStyle->text[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text3_green, (jshort)lpGtkStyle->text[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text3_blue, (jshort)lpGtkStyle->text[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text4_pixel, (jint)lpGtkStyle->text[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text4_red, (jshort)lpGtkStyle->text[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text4_green, (jshort)lpGtkStyle->text[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->text4_blue, (jshort)lpGtkStyle->text[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base0_pixel, (jint)lpGtkStyle->base[0].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base0_red, (jshort)lpGtkStyle->base[0].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base0_green, (jshort)lpGtkStyle->base[0].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base0_blue, (jshort)lpGtkStyle->base[0].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base1_pixel, (jint)lpGtkStyle->base[1].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base1_red, (jshort)lpGtkStyle->base[1].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base1_green, (jshort)lpGtkStyle->base[1].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base1_blue, (jshort)lpGtkStyle->base[1].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base2_pixel, (jint)lpGtkStyle->base[2].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base2_red, (jshort)lpGtkStyle->base[2].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base2_green, (jshort)lpGtkStyle->base[2].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base2_blue, (jshort)lpGtkStyle->base[2].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base3_pixel, (jint)lpGtkStyle->base[3].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base3_red, (jshort)lpGtkStyle->base[3].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base3_green, (jshort)lpGtkStyle->base[3].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base3_blue, (jshort)lpGtkStyle->base[3].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base4_pixel, (jint)lpGtkStyle->base[4].pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base4_red, (jshort)lpGtkStyle->base[4].red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base4_green, (jshort)lpGtkStyle->base[4].green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->base4_blue, (jshort)lpGtkStyle->base[4].blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->black_pixel, (jint)lpGtkStyle->black.pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->black_red, (jshort)lpGtkStyle->black.red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->black_green, (jshort)lpGtkStyle->black.green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->black_blue, (jshort)lpGtkStyle->black.blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->white_pixel, (jint)lpGtkStyle->white.pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->white_red, (jshort)lpGtkStyle->white.red);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->white_green, (jshort)lpGtkStyle->white.green);
+ (*env)->SetShortField(env, lpObject, lpGtkStyleFc->white_blue, (jshort)lpGtkStyle->white.blue);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->font, (jint)lpGtkStyle->font);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg_gc0, (jint)lpGtkStyle->fg_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg_gc1, (jint)lpGtkStyle->fg_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg_gc2, (jint)lpGtkStyle->fg_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg_gc3, (jint)lpGtkStyle->fg_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->fg_gc4, (jint)lpGtkStyle->fg_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_gc0, (jint)lpGtkStyle->bg_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_gc1, (jint)lpGtkStyle->bg_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_gc2, (jint)lpGtkStyle->bg_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_gc3, (jint)lpGtkStyle->bg_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_gc4, (jint)lpGtkStyle->bg_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light_gc0, (jint)lpGtkStyle->light_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light_gc1, (jint)lpGtkStyle->light_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light_gc2, (jint)lpGtkStyle->light_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light_gc3, (jint)lpGtkStyle->light_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->light_gc4, (jint)lpGtkStyle->light_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark_gc0, (jint)lpGtkStyle->dark_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark_gc1, (jint)lpGtkStyle->dark_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark_gc2, (jint)lpGtkStyle->dark_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark_gc3, (jint)lpGtkStyle->dark_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->dark_gc4, (jint)lpGtkStyle->dark_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid_gc0, (jint)lpGtkStyle->mid_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid_gc1, (jint)lpGtkStyle->mid_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid_gc2, (jint)lpGtkStyle->mid_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid_gc3, (jint)lpGtkStyle->mid_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->mid_gc4, (jint)lpGtkStyle->mid_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text_gc0, (jint)lpGtkStyle->text_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text_gc1, (jint)lpGtkStyle->text_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text_gc2, (jint)lpGtkStyle->text_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text_gc3, (jint)lpGtkStyle->text_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->text_gc4, (jint)lpGtkStyle->text_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base_gc0, (jint)lpGtkStyle->base_gc[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base_gc1, (jint)lpGtkStyle->base_gc[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base_gc2, (jint)lpGtkStyle->base_gc[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base_gc3, (jint)lpGtkStyle->base_gc[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->base_gc4, (jint)lpGtkStyle->base_gc[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->black_gc, (jint)lpGtkStyle->black_gc);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->white_gc, (jint)lpGtkStyle->white_gc);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap0, (jint)lpGtkStyle->bg_pixmap[0]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap1, (jint)lpGtkStyle->bg_pixmap[1]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap2, (jint)lpGtkStyle->bg_pixmap[2]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap3, (jint)lpGtkStyle->bg_pixmap[3]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->bg_pixmap4, (jint)lpGtkStyle->bg_pixmap[4]);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->ref_count, (jint)lpGtkStyle->ref_count);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->attach_count, (jint)lpGtkStyle->attach_count);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->depth, (jint)lpGtkStyle->depth);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->colormap, (jint)lpGtkStyle->colormap);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->engine, (jint)lpGtkStyle->engine);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->engine_data, (jint)lpGtkStyle->engine_data);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->rc_style, (jint)lpGtkStyle->rc_style);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleFc->styles, (jint)lpGtkStyle->styles);
+}
+
+void getGtkStyleClassFields(JNIEnv *env, jobject lpObject, GtkStyleClass *lpGtkStyleClass, GtkStyleClass_FID_CACHE *lpGtkStyleClassFc)
+{
+ lpGtkStyleClass->xthickness = (*env)->GetIntField(env, lpObject, lpGtkStyleClassFc->xthickness);
+ lpGtkStyleClass->ythickness = (*env)->GetIntField(env, lpObject, lpGtkStyleClassFc->ythickness);
+}
+
+void setGtkStyleClassFields(JNIEnv *env, jobject lpObject, GtkStyleClass *lpGtkStyleClass, GtkStyleClass_FID_CACHE *lpGtkStyleClassFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGtkStyleClassFc->xthickness, (jint)lpGtkStyleClass->xthickness);
+ (*env)->SetIntField(env, lpObject, lpGtkStyleClassFc->ythickness, (jint)lpGtkStyleClass->ythickness);
+}
+
+void getGtkWidgetFields(JNIEnv *env, jobject lpObject, GtkWidget *lpGtkWidget, GtkWidget_FID_CACHE *lpGtkWidgetFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkObjectFields(env, lpObject, &lpGtkWidget->object, &PGLOB(GtkObjectFc));
+ lpGtkWidget->private_flags = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->private_flags);
+ lpGtkWidget->state = (*env)->GetByteField(env, lpObject, lpGtkWidgetFc->state);
+ lpGtkWidget->saved_state = (*env)->GetByteField(env, lpObject, lpGtkWidgetFc->saved_state);
+ lpGtkWidget->name = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkWidgetFc->name);
+ lpGtkWidget->style = (GtkStyle*)(*env)->GetIntField(env, lpObject, lpGtkWidgetFc->style);
+ lpGtkWidget->requisition.width = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->req_width);
+ lpGtkWidget->requisition.height = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->req_height);
+ lpGtkWidget->allocation.x = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->alloc_x);
+ lpGtkWidget->allocation.y = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->alloc_y);
+ lpGtkWidget->allocation.width = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->alloc_width);
+ lpGtkWidget->allocation.height = (*env)->GetShortField(env, lpObject, lpGtkWidgetFc->alloc_height);
+ lpGtkWidget->window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGtkWidgetFc->window);
+ lpGtkWidget->parent = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkWidgetFc->parent);
+}
+
+void getGtkFrameFields(JNIEnv *env, jobject lpObject, GtkFrame *lpGtkFrame, GtkFrame_FID_CACHE *lpGtkFrameFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkBinFields(env, lpObject, &lpGtkFrame->bin, &PGLOB(GtkBinFc));
+ lpGtkFrame->label = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkFrameFc->label);
+ lpGtkFrame->shadow_type = (*env)->GetShortField(env, lpObject, lpGtkFrameFc->shadow_type);
+ lpGtkFrame->label_width = (*env)->GetShortField(env, lpObject, lpGtkFrameFc->label_width);
+ lpGtkFrame->label_height = (*env)->GetShortField(env, lpObject, lpGtkFrameFc->label_height);
+ lpGtkFrame->label_xalign = (*env)->GetFloatField(env, lpObject, lpGtkFrameFc->label_xalign);
+ lpGtkFrame->label_yalign = (*env)->GetFloatField(env, lpObject, lpGtkFrameFc->label_yalign);
+}
+
+void setGtkWidgetFields(JNIEnv *env, jobject lpObject, GtkWidget *lpGtkWidget, GtkWidget_FID_CACHE *lpGtkWidgetFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkObjectFields(env, lpObject, &lpGtkWidget->object, &PGLOB(GtkObjectFc));
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->private_flags, (jshort)lpGtkWidget->private_flags);
+ (*env)->SetByteField(env, lpObject, lpGtkWidgetFc->state, (jbyte)lpGtkWidget->state);
+ (*env)->SetByteField(env, lpObject, lpGtkWidgetFc->saved_state, (jbyte)lpGtkWidget->saved_state);
+ (*env)->SetIntField(env, lpObject, lpGtkWidgetFc->name, (jint)lpGtkWidget->name);
+ (*env)->SetIntField(env, lpObject, lpGtkWidgetFc->style, (jint)lpGtkWidget->style);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->req_width, (jshort)lpGtkWidget->requisition.width);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->req_height, (jshort)lpGtkWidget->requisition.height);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->alloc_x, (jshort)lpGtkWidget->allocation.x);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->alloc_y, (jshort)lpGtkWidget->allocation.y);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->alloc_width, (jshort)lpGtkWidget->allocation.width);
+ (*env)->SetShortField(env, lpObject, lpGtkWidgetFc->alloc_height, (jshort)lpGtkWidget->allocation.height);
+ (*env)->SetIntField(env, lpObject, lpGtkWidgetFc->window, (jint)lpGtkWidget->window);
+ (*env)->SetIntField(env, lpObject, lpGtkWidgetFc->parent, (jint)lpGtkWidget->parent);
+}
+
+void setGtkFrameFields(JNIEnv *env, jobject lpObject, GtkFrame *lpGtkFrame, GtkFrame_FID_CACHE *lpGtkFrameFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkBinFields(env, lpObject, &lpGtkFrame->bin, &PGLOB(GtkBinFc));
+ (*env)->SetIntField (env, lpObject, lpGtkFrameFc->label, (jint)lpGtkFrame->label);
+ (*env)->SetShortField(env, lpObject, lpGtkFrameFc->label_width, (jshort)lpGtkFrame->label_width);
+ (*env)->SetShortField(env, lpObject, lpGtkFrameFc->label_height, (jshort)lpGtkFrame->label_height);
+ (*env)->SetFloatField(env, lpObject, lpGtkFrameFc->label_xalign, (jfloat)lpGtkFrame->label_xalign);
+ (*env)->SetFloatField(env, lpObject, lpGtkFrameFc->label_yalign, (jfloat)lpGtkFrame->label_yalign);
+}
+
+void getGtkWindowFields(JNIEnv *env, jobject lpObject, GtkWindow *lpGtkWindow, GtkWindow_FID_CACHE *lpGtkWindowFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkBinFields(env, lpObject, &lpGtkWindow->bin, &PGLOB(GtkBinFc));
+ lpGtkWindow->title = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->title);
+ lpGtkWindow->wmclass_name = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->wmclass_name);
+ lpGtkWindow->wmclass_class = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->wmclass_class);
+ lpGtkWindow->type = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->type);
+ lpGtkWindow->focus_widget = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->focus_widget);
+ lpGtkWindow->default_widget = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->default_widget);
+ lpGtkWindow->transient_parent = (GtkWindow*)(*env)->GetIntField(env, lpObject, lpGtkWindowFc->transient_parent);
+ lpGtkWindow->resize_count = (*env)->GetShortField(env, lpObject, lpGtkWindowFc->resize_count);
+ lpGtkWindow->allow_shrink = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->allow_shrink);
+ lpGtkWindow->allow_grow = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->allow_grow);
+ lpGtkWindow->auto_shrink = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->auto_shrink);
+ lpGtkWindow->handling_resize = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->handling_resize);
+ lpGtkWindow->position = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->position);
+ lpGtkWindow->use_uposition = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->use_uposition);
+ lpGtkWindow->modal = (*env)->GetIntField(env, lpObject, lpGtkWindowFc->title);
+}
+
+void setGtkWindowFields(JNIEnv *env, jobject lpObject, GtkWindow *lpGtkWindow, GtkWindow_FID_CACHE *lpGtkWindowFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkBinFields(env, lpObject, &lpGtkWindow->bin, &PGLOB(GtkBinFc));
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->title, (jint)lpGtkWindow->title);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->wmclass_name, (jint)lpGtkWindow->wmclass_name);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->wmclass_class, (jint)lpGtkWindow->wmclass_class);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->type, (jint)lpGtkWindow->type);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->focus_widget, (jint)lpGtkWindow->focus_widget);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->default_widget, (jint)lpGtkWindow->default_widget);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->transient_parent, (jint)lpGtkWindow->title);
+ (*env)->SetShortField(env, lpObject, lpGtkWindowFc->resize_count, (jshort)lpGtkWindow->resize_count);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->allow_shrink, (jint)lpGtkWindow->allow_shrink);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->allow_grow, (jint)lpGtkWindow->allow_grow);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->auto_shrink, (jint)lpGtkWindow->auto_shrink);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->handling_resize, (jint)lpGtkWindow->handling_resize);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->position, (jint)lpGtkWindow->position);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->use_uposition, (jint)lpGtkWindow->use_uposition);
+ (*env)->SetIntField(env, lpObject, lpGtkWindowFc->modal, (jint)lpGtkWindow->modal);
+}
+
+void getGtkMenuFields(JNIEnv *env, jobject lpObject, GtkMenu *lpGtkMenu, GtkMenu_FID_CACHE *lpGtkMenuFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkMenuShellFields(env, lpObject, &lpGtkMenu->menu_shell, &PGLOB(GtkMenuShellFc));
+ lpGtkMenu->parent_menu_item = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->parent_menu_item);
+ lpGtkMenu->old_active_menu_item = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->old_active_menu_item);
+ lpGtkMenu->accel_group = (GtkAccelGroup*)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->accel_group);
+ lpGtkMenu->position_func = (GtkMenuPositionFunc)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->position_func);
+ lpGtkMenu->position_func_data = (gpointer)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->position_func_data);
+ lpGtkMenu->toplevel = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->toplevel);
+ lpGtkMenu->tearoff_window = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkMenuFc->tearoff_window);
+ lpGtkMenu->torn_off = (*env)->GetIntField(env, lpObject, lpGtkMenuFc->torn_off);
+}
+
+void setGtkMenuFields(JNIEnv *env, jobject lpObject, GtkMenu *lpGtkMenu, GtkMenu_FID_CACHE *lpGtkMenuFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkMenuShellFields(env, lpObject, &lpGtkMenu->menu_shell, &PGLOB(GtkMenuShellFc));
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->parent_menu_item, (jint)lpGtkMenu->parent_menu_item);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->old_active_menu_item, (jint)lpGtkMenu->old_active_menu_item);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->accel_group, (jint)lpGtkMenu->accel_group);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->position_func, (jint)lpGtkMenu->position_func);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->position_func_data, (jint)lpGtkMenu->position_func_data);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->toplevel, (jint)lpGtkMenu->toplevel);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->tearoff_window, (jint)lpGtkMenu->tearoff_window);
+ (*env)->SetIntField(env, lpObject, lpGtkMenuFc->torn_off, (jint)lpGtkMenu->torn_off);
+}
+
+void getGtkMenuShellFields(JNIEnv *env, jobject lpObject, GtkMenuShell *lpGtkMenuShell, GtkMenuShell_FID_CACHE *lpGtkMenuShellFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkContainerFields(env, lpObject, &lpGtkMenuShell->container, &PGLOB(GtkContainerFc));
+ lpGtkMenuShell->active = (*env)->GetIntField(env, lpObject, lpGtkMenuShellFc->active);
+}
+
+void setGtkMenuShellFields(JNIEnv *env, jobject lpObject, GtkMenuShell *lpGtkMenuShell, GtkMenuShell_FID_CACHE *lpGtkMenuShellFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkContainerFields(env, lpObject, &lpGtkMenuShell->container, &PGLOB(GtkContainerFc));
+ (*env)->SetIntField(env, lpObject, lpGtkMenuShellFc->active, (jint)lpGtkMenuShell->active);
+}
+
+void getGtkItemFields(JNIEnv *env, jobject lpObject, GtkItem *lpGtkItem, GtkItem_FID_CACHE *lpGtkItemFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkBinFields(env, lpObject, &lpGtkItem->bin, &PGLOB(GtkBinFc));
+}
+
+void setGtkItemFields(JNIEnv *env, jobject lpObject, GtkItem *lpGtkItem, GtkItem_FID_CACHE *lpGtkItemFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkBinFields(env, lpObject, &lpGtkItem->bin, &PGLOB(GtkBinFc));
+}
+
+void getGtkMenuItemFields(JNIEnv *env, jobject lpObject, GtkMenuItem *lpGtkMenuItem, GtkMenuItem_FID_CACHE *lpGtkMenuItemFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkItemFields(env, lpObject, &lpGtkMenuItem->item, &PGLOB(GtkItemFc));
+}
+
+void setGtkMenuItemFields(JNIEnv *env, jobject lpObject, GtkMenuItem *lpGtkMenuItem, GtkMenuItem_FID_CACHE *lpGtkMenuItemFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkItemFields(env, lpObject, &lpGtkMenuItem->item, &PGLOB(GtkItemFc));
+}
+
+void getGtkCheckMenuItemFields(JNIEnv *env, jobject lpObject, GtkCheckMenuItem *lpGtkCheckMenuItem, GtkCheckMenuItem_FID_CACHE *lpGtkCheckMenuItemFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkMenuItemFields(env, lpObject, &lpGtkCheckMenuItem->menu_item, &PGLOB(GtkMenuItemFc));
+ lpGtkCheckMenuItem->active = (*env)->GetIntField(env, lpObject, lpGtkCheckMenuItemFc->active);
+ lpGtkCheckMenuItem->always_show_toggle = (*env)->GetIntField(env, lpObject, lpGtkCheckMenuItemFc->always_show_toggle);
+}
+
+void setGtkCheckMenuItemFields(JNIEnv *env, jobject lpObject, GtkCheckMenuItem *lpGtkCheckMenuItem, GtkCheckMenuItem_FID_CACHE *lpGtkCheckMenuItemFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkMenuItemFields(env, lpObject, &lpGtkCheckMenuItem->menu_item, &PGLOB(GtkMenuItemFc));
+ (*env)->SetIntField(env, lpObject, lpGtkCheckMenuItemFc->active, (jint)lpGtkCheckMenuItem->active);
+ (*env)->SetIntField(env, lpObject, lpGtkCheckMenuItemFc->always_show_toggle, (jint)lpGtkCheckMenuItem->always_show_toggle);
+}
+
+void getGtkDataFields(JNIEnv *env, jobject lpObject, GtkData *lpGtkData, GtkData_FID_CACHE *lpGtkDataFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkObjectFields(env, lpObject, &lpGtkData->object, &PGLOB(GtkObjectFc));
+}
+
+void setGtkDataFields(JNIEnv *env, jobject lpObject, GtkData *lpGtkData, GtkData_FID_CACHE *lpGtkDataFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkObjectFields(env, lpObject, &lpGtkData->object, &PGLOB(GtkObjectFc));
+}
+
+void getGtkAdjustmentFields(JNIEnv *env, jobject lpObject, GtkAdjustment *lpGtkAdjustment, GtkAdjustment_FID_CACHE *lpGtkAdjustmentFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkDataFields(env, lpObject, &lpGtkAdjustment->data, &PGLOB(GtkDataFc));
+ lpGtkAdjustment->lower = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->lower);
+ lpGtkAdjustment->upper = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->upper);
+ lpGtkAdjustment->value = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->value);
+ lpGtkAdjustment->step_increment = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->step_increment);
+ lpGtkAdjustment->page_increment = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->page_increment);
+ lpGtkAdjustment->page_size = (*env)->GetFloatField(env, lpObject, lpGtkAdjustmentFc->page_size);
+}
+
+void setGtkAdjustmentFields(JNIEnv *env, jobject lpObject, GtkAdjustment *lpGtkAdjustment, GtkAdjustment_FID_CACHE *lpGtkAdjustmentFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkDataFields(env, lpObject, &lpGtkAdjustment->data, &PGLOB(GtkDataFc));
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->lower, (jfloat)lpGtkAdjustment->lower);
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->upper, (jfloat)lpGtkAdjustment->upper);
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->value, (jfloat)lpGtkAdjustment->value);
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->step_increment, (jfloat)lpGtkAdjustment->step_increment);
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->page_increment, (jfloat)lpGtkAdjustment->page_increment);
+ (*env)->SetFloatField(env, lpObject, lpGtkAdjustmentFc->page_size, (jfloat)lpGtkAdjustment->page_size);
+}
+
+void getGtkCListRowFields(JNIEnv *env, jobject lpObject, GtkCListRow *lpGtkCListRow, GtkCListRow_FID_CACHE *lpGtkCListRowFc)
+{
+ lpGtkCListRow->cell = (GtkCell*)(*env)->GetIntField(env, lpObject, lpGtkCListRowFc->cell);
+ lpGtkCListRow->state = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->state);
+ lpGtkCListRow->foreground.red = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->foreground_red);
+ lpGtkCListRow->foreground.green = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->foreground_green);
+ lpGtkCListRow->foreground.blue = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->foreground_blue);
+ lpGtkCListRow->foreground.pixel = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->foreground_pixel);
+ lpGtkCListRow->background.red = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->background_red);
+ lpGtkCListRow->background.green = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->background_green);
+ lpGtkCListRow->background.blue = (*env)->GetShortField(env, lpObject, lpGtkCListRowFc->background_blue);
+ lpGtkCListRow->background.pixel = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->background_pixel);
+ lpGtkCListRow->style = (GtkStyle*)(*env)->GetIntField(env, lpObject, lpGtkCListRowFc->style);
+ lpGtkCListRow->data = (gpointer)(*env)->GetIntField(env, lpObject, lpGtkCListRowFc->data);
+ lpGtkCListRow->destroy = (GtkDestroyNotify)(*env)->GetIntField(env, lpObject, lpGtkCListRowFc->destroy);
+ lpGtkCListRow->fg_set = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->fg_set);
+ lpGtkCListRow->bg_set = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->bg_set);
+ lpGtkCListRow->selectable = (*env)->GetIntField(env, lpObject, lpGtkCListRowFc->selectable);
+}
+
+void getGtkCListColumnFields(JNIEnv *env, jobject lpObject, GtkCListColumn *lpGtkCListColumn, GtkCListColumn_FID_CACHE *lpGtkCListColumnFc)
+{
+ lpGtkCListColumn->title = (gchar*)(*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->title);
+ lpGtkCListColumn->area.x = (*env)->GetShortField(env, lpObject, lpGtkCListColumnFc->area_x);
+ lpGtkCListColumn->area.y = (*env)->GetShortField(env, lpObject, lpGtkCListColumnFc->area_y);
+ lpGtkCListColumn->area.width = (*env)->GetShortField(env, lpObject, lpGtkCListColumnFc->area_width);
+ lpGtkCListColumn->area.height = (*env)->GetShortField(env, lpObject, lpGtkCListColumnFc->area_height);
+ lpGtkCListColumn->button = (GtkWidget*)(*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->button);
+ lpGtkCListColumn->window = (GdkWindow*)(*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->window);
+ lpGtkCListColumn->width = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->width);
+ lpGtkCListColumn->min_width = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->min_width);
+ lpGtkCListColumn->max_width = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->max_width);
+ lpGtkCListColumn->justification = (GtkJustification)(*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->justification);
+ lpGtkCListColumn->visible = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->visible);
+ lpGtkCListColumn->width_set = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->width_set);
+ lpGtkCListColumn->resizeable = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->resizeable);
+ lpGtkCListColumn->auto_resize = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->auto_resize);
+ lpGtkCListColumn->button_passive = (*env)->GetIntField(env, lpObject, lpGtkCListColumnFc->button_passive);
+}
+
+void setGtkCListRowFields(JNIEnv *env, jobject lpObject, GtkCListRow *lpGtkCListRow, GtkCListRow_FID_CACHE *lpGtkCListRowFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->cell, (jint)lpGtkCListRow->cell);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->state, (jint)lpGtkCListRow->state);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->foreground_red, (jshort)lpGtkCListRow->foreground.red);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->foreground_green, (jshort)lpGtkCListRow->foreground.green);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->foreground_blue, (jshort)lpGtkCListRow->foreground.blue);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->foreground_pixel, (jint)lpGtkCListRow->foreground.pixel);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->background_red, (jshort)lpGtkCListRow->background.red);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->background_green, (jshort)lpGtkCListRow->background.green);
+ (*env)->SetShortField(env, lpObject, lpGtkCListRowFc->background_blue, (jshort)lpGtkCListRow->background.blue);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->background_pixel, (jint)lpGtkCListRow->background.pixel);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->style, (jint)lpGtkCListRow->style);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->data, (jint)lpGtkCListRow->data);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->destroy, (jint)lpGtkCListRow->destroy);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->fg_set, (jint)lpGtkCListRow->fg_set);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->bg_set, (jint)lpGtkCListRow->bg_set);
+ (*env)->SetIntField(env, lpObject, lpGtkCListRowFc->selectable, (jint)lpGtkCListRow->selectable);
+}
+
+void setGtkCListColumnFields(JNIEnv *env, jobject lpObject, GtkCListColumn *lpGtkCListColumn, GtkCListColumn_FID_CACHE *lpGtkCListColumnFc)
+{
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->title, (jint)lpGtkCListColumn->title);
+ (*env)->SetShortField(env, lpObject, lpGtkCListColumnFc->area_x, (jshort)lpGtkCListColumn->area.x);
+ (*env)->SetShortField(env, lpObject, lpGtkCListColumnFc->area_y, (jshort)lpGtkCListColumn->area.y);
+ (*env)->SetShortField(env, lpObject, lpGtkCListColumnFc->area_width, (jshort)lpGtkCListColumn->area.width);
+ (*env)->SetShortField(env, lpObject, lpGtkCListColumnFc->area_height, (jshort)lpGtkCListColumn->area.height);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->button, (jint)lpGtkCListColumn->button);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->window, (jint)lpGtkCListColumn->window);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->width, (jshort)lpGtkCListColumn->width);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->min_width, (jint)lpGtkCListColumn->min_width);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->max_width, (jint)lpGtkCListColumn->max_width);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->justification, (jint)lpGtkCListColumn->justification);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->visible, (jint)lpGtkCListColumn->visible);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->width_set, (jint)lpGtkCListColumn->width_set);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->resizeable, (jint)lpGtkCListColumn->resizeable);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->auto_resize, (jint)lpGtkCListColumn->auto_resize);
+ (*env)->SetIntField(env, lpObject, lpGtkCListColumnFc->button_passive, (jint)lpGtkCListColumn->button_passive);
+}
+
+void getGtkCTreeFields(JNIEnv *env, jobject lpObject, GtkCTree *lpGtkCTree, GtkCTree_FID_CACHE *lpGtkCTreeFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkCListFields(env, lpObject, &lpGtkCTree->clist, &PGLOB(GtkCListFc));
+ lpGtkCTree->tree_indent = (*env)->GetIntField(env, lpObject, lpGtkCTreeFc->tree_indent);
+ lpGtkCTree->tree_column = (*env)->GetIntField(env, lpObject, lpGtkCTreeFc->tree_column);
+}
+
+void setGtkCTreeFields(JNIEnv *env, jobject lpObject, GtkCTree *lpGtkCTree, GtkCTree_FID_CACHE *lpGtkCTreeFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkCListFields(env, lpObject, &lpGtkCTree->clist, &PGLOB(GtkCListFc));
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeFc->tree_indent, (jint)lpGtkCTree->tree_indent);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeFc->tree_column, (jint)lpGtkCTree->tree_column);
+}
+
+void getGtkCTreeRowFields(JNIEnv *env, jobject lpObject, GtkCTreeRow *lpGtkCTreeRow, GtkCTreeRow_FID_CACHE *lpGtkCTreeRowFc)
+{
+ DECL_GLOB(pGlob)
+ getGtkCListRowFields(env, lpObject, &lpGtkCTreeRow->row, &PGLOB(GtkCListRowFc));
+ lpGtkCTreeRow->parent = (GtkCTreeNode*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->parent);
+ lpGtkCTreeRow->sibling = (GtkCTreeNode*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->sibling);
+ lpGtkCTreeRow->children = (GtkCTreeNode*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->children);
+ lpGtkCTreeRow->pixmap_closed = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->pixmap_closed);
+ lpGtkCTreeRow->mask_closed = (GdkBitmap*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->mask_closed);
+ lpGtkCTreeRow->pixmap_opened = (GdkPixmap*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->pixmap_opened);
+ lpGtkCTreeRow->mask_opened = (GdkBitmap*)(*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->mask_opened);
+ lpGtkCTreeRow->level = (*env)->GetShortField(env, lpObject, lpGtkCTreeRowFc->level);
+ lpGtkCTreeRow->is_leaf = (*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->is_leaf);
+ lpGtkCTreeRow->expanded = (*env)->GetIntField(env, lpObject, lpGtkCTreeRowFc->expanded);
+}
+
+void setGtkCTreeRowFields(JNIEnv *env, jobject lpObject, GtkCTreeRow *lpGtkCTreeRow, GtkCTreeRow_FID_CACHE *lpGtkCTreeRowFc)
+{
+ DECL_GLOB(pGlob)
+ setGtkCListRowFields(env, lpObject, &lpGtkCTreeRow->row, &PGLOB(GtkCListRowFc));
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->parent, (jint)lpGtkCTreeRow->parent);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->sibling, (jint)lpGtkCTreeRow->sibling);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->children, (jint)lpGtkCTreeRow->children);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->pixmap_closed, (jint)lpGtkCTreeRow->pixmap_closed);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->mask_closed, (jint)lpGtkCTreeRow->mask_closed);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->pixmap_opened, (jint)lpGtkCTreeRow->pixmap_opened);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->mask_opened, (jint)lpGtkCTreeRow->mask_opened);
+ (*env)->SetShortField(env, lpObject, lpGtkCTreeRowFc->level, (jshort)lpGtkCTreeRow->level);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->is_leaf, (jint)lpGtkCTreeRow->is_leaf);
+ (*env)->SetIntField(env, lpObject, lpGtkCTreeRowFc->expanded, (jint)lpGtkCTreeRow->expanded);
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.h
new file mode 100644
index 0000000000..605c117fc0
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/structs.h
@@ -0,0 +1,580 @@
+/*
+ * Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+ *
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ */
+
+/**
+ * JNI SWT object field getters and setters declarations for GTK structs.
+ */
+
+#ifndef INC_structs_H
+#define INC_structs_H
+
+#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
+
+/* ----------- fid and class caches ----------- */
+/**
+ * Used for Java objects passed into JNI that are
+ * declared like:
+ *
+ * nativeFunction (Rectangle p1, Rectangle p2, Rectangle p3)
+ *
+ * and not like this
+ *
+ * nativeFunction (Object p1, Object p2, Object p3)
+ *
+ *
+ */
+
+/* ----------- fid cache structures ----------- */
+
+typedef struct GdkColor_FID_CACHE {
+ int cached;
+ jclass GdkColorClass;
+ jfieldID pixel, red, green, blue;
+} GdkColor_FID_CACHE;
+
+typedef GdkColor_FID_CACHE *PGdkColor_FID_CACHE;
+
+typedef struct GdkEventKey_FID_CACHE {
+ int cached;
+ jclass GdkEventKeyClass;
+ jfieldID type, window, send_event, time, state, keyval, length, string;
+} GdkEventKey_FID_CACHE;
+
+typedef GdkEventKey_FID_CACHE *PGdkEventKey_FID_CACHE;
+
+typedef struct GdkEventButton_FID_CACHE {
+ int cached;
+ jclass GdkEventButtonClass;
+ jfieldID type, window, send_event, time, x, y, pressure, xtilt, ytilt, state, button, source, deviceid, x_root, y_root;
+} GdkEventButton_FID_CACHE;
+
+typedef GdkEventButton_FID_CACHE *PGdkEventButton_FID_CACHE;
+
+typedef struct GdkEventMotion_FID_CACHE {
+ int cached;
+ jclass GdkEventMotionClass;
+ jfieldID type, window, send_event, time, x, y, pressure, xtilt, ytilt, state, is_hint, source, deviceid, x_root, y_root;
+} GdkEventMotion_FID_CACHE;
+
+typedef GdkEventMotion_FID_CACHE *PGdkEventMotion_FID_CACHE;
+
+typedef struct GdkEventExpose_FID_CACHE {
+ int cached;
+ jclass GdkEventExposeClass;
+ jfieldID type, window, send_event, x, y, width, height, count;
+} GdkEventExpose_FID_CACHE;
+
+typedef GdkEventExpose_FID_CACHE *PGdkEventExpose_FID_CACHE;
+
+typedef struct GdkFont_FID_CACHE {
+ int cached;
+ jclass GdkFontClass;
+ jfieldID type, ascent, descent;
+} GdkFont_FID_CACHE;
+
+typedef GdkFont_FID_CACHE *PGdkFont_FID_CACHE;
+
+typedef struct GdkGCValues_FID_CACHE {
+ int cached;
+ jclass GdkGCValuesClass;
+ jfieldID foreground_pixel, foreground_red, foreground_green, foreground_blue, background_pixel, background_red, background_green, background_blue, font, function, fill, tile, stipple, clip_mask, subwindow_mode, ts_x_origin, ts_y_origin, clip_x_origin, clip_y_origin, graphics_exposures, line_width, line_style, cap_style, join_style;
+} GdkGCValues_FID_CACHE;
+
+typedef GdkGCValues_FID_CACHE *PGdkGCValues_FID_CACHE;
+
+typedef struct GdkImage_FID_CACHE {
+ int cached;
+ jclass GdkImageClass;
+ jfieldID type, visual, byte_order, width, height, depth, bpp, bpl, mem;
+} GdkImage_FID_CACHE;
+
+typedef GdkImage_FID_CACHE *PGdkImage_FID_CACHE;
+
+typedef struct GdkPoint_FID_CACHE {
+ int cached;
+ jclass GdkPointClass;
+ jfieldID x, y;
+} GdkPoint_FID_CACHE;
+
+typedef GdkPoint_FID_CACHE *PGdkPoint_FID_CACHE;
+
+typedef struct GdkRectangle_FID_CACHE {
+ int cached;
+ jclass GdkRectangleClass;
+ jfieldID x, y, width, height;
+} GdkRectangle_FID_CACHE;
+
+typedef GdkRectangle_FID_CACHE *PGdkRectangle_FID_CACHE;
+
+typedef struct GdkVisual_FID_CACHE {
+ int cached;
+ jclass GdkVisualClass;
+ jfieldID type, depth, byte_order, colormap_size, bits_per_rgb, red_mask, red_shift, red_prec, green_mask, green_shift, green_prec, blue_mask, blue_shift, blue_prec;
+} GdkVisual_FID_CACHE;
+
+typedef GdkVisual_FID_CACHE *PGdkVisual_FID_CACHE;
+
+typedef struct GtkObject_FID_CACHE {
+ int cached;
+ jclass GtkObjectClass;
+ jfieldID klass, flags, ref_count, object_data;
+} GtkObject_FID_CACHE;
+
+typedef GtkObject_FID_CACHE *PGtkObject_FID_CACHE;
+
+typedef struct GtkData_FID_CACHE {
+ int cached;
+ jclass GtkDataClass;
+} GtkData_FID_CACHE;
+
+typedef GtkData_FID_CACHE *PGtkData_FID_CACHE;
+
+typedef struct GtkAdjustment_FID_CACHE {
+ int cached;
+ jclass GtkAdjustmentClass;
+ jfieldID lower, upper, value, step_increment, page_increment, page_size;
+} GtkAdjustment_FID_CACHE;
+
+typedef GtkAdjustment_FID_CACHE *PGtkAdjustment_FID_CACHE;
+
+typedef struct GtkAllocation_FID_CACHE {
+ int cached;
+ jclass GtkAllocationClass;
+ jfieldID x, y, width, height;
+} GtkAllocation_FID_CACHE;
+
+typedef GtkAllocation_FID_CACHE *PGtkAllocation_FID_CACHE;
+
+typedef struct GtkWidget_FID_CACHE {
+ int cached;
+ jclass GtkWidgetClass;
+ jfieldID private_flags, state, saved_state, name, style, req_width, req_height, alloc_x, alloc_y, alloc_width, alloc_height, window, parent;
+} GtkWidget_FID_CACHE;
+
+typedef GtkWidget_FID_CACHE *PGtkWidget_FID_CACHE;
+
+typedef struct GtkContainer_FID_CACHE {
+ int cached;
+ jclass GtkContainerClass;
+ jfieldID focus_child, border_width, need_resize, resize_mode, resize_widgets;
+} GtkContainer_FID_CACHE;
+
+typedef GtkContainer_FID_CACHE *PGtkContainer_FID_CACHE;
+
+typedef struct GtkBin_FID_CACHE {
+ int cached;
+ jclass GtkBinClass;
+ jfieldID child;
+} GtkBin_FID_CACHE;
+
+typedef GtkBin_FID_CACHE *PGtkBin_FID_CACHE;
+
+typedef struct GtkFrame_FID_CACHE {
+ int cached;
+ jclass GtkFrameClass;
+ jfieldID label, shadow_type,
+ label_width, label_height,
+ label_xalign, label_yalign;
+} GtkFrame_FID_CACHE;
+
+typedef GtkFrame_FID_CACHE *PGtkFrame_FID_CACHE;
+
+typedef struct GtkMenu_FID_CACHE {
+ int cached;
+ jclass GtkMenuClass;
+ jfieldID parent_menu_item, old_active_menu_item, accel_group, position_func, position_func_data, toplevel, tearoff_window, torn_off;
+} GtkMenu_FID_CACHE;
+
+typedef GtkMenu_FID_CACHE *PGtkMenu_FID_CACHE;
+
+typedef struct GtkMenuShell_FID_CACHE {
+ int cached;
+ jclass GtkMenuShellClass;
+ jfieldID active;
+} GtkMenuShell_FID_CACHE;
+
+typedef GtkMenuShell_FID_CACHE *PGtkMenuShell_FID_CACHE;
+
+typedef struct GtkItem_FID_CACHE {
+ int cached;
+ jclass GtkItemClass;
+} GtkItem_FID_CACHE;
+
+typedef GtkItem_FID_CACHE *PGtkItem_FID_CACHE;
+
+typedef struct GtkMenuItem_FID_CACHE {
+ int cached;
+ jclass GtkMenuItemClass;
+ jfieldID submenu, accelerator_signal, toggle_size, accelerator_width, show_toggle_indicator, show_submenu_indicator, submenu_placement, submenu_direction, right_justify, timer;
+} GtkMenuItem_FID_CACHE;
+
+typedef GtkMenuItem_FID_CACHE *PGtkMenuItem_FID_CACHE;
+
+typedef struct GtkCheckMenuItem_FID_CACHE {
+ int cached;
+ jclass GtkCheckMenuItemClass;
+ jfieldID active, always_show_toggle;
+} GtkCheckMenuItem_FID_CACHE;
+
+typedef GtkCheckMenuItem_FID_CACHE *PGtkCheckMenuItem_FID_CACHE;
+
+typedef struct GtkWindow_FID_CACHE {
+ int cached;
+ jclass GtkWindowClass;
+ jfieldID title, wmclass_name, wmclass_class, type, focus_widget, default_widget, transient_parent, resize_count, allow_shrink, allow_grow, auto_shrink, handling_resize, position, use_uposition, modal;
+} GtkWindow_FID_CACHE;
+
+typedef GtkWindow_FID_CACHE *PGtkWindow_FID_CACHE;
+
+typedef struct GtkColorSelectionDialog_FID_CACHE {
+ int cached;
+ jclass GtkColorSelectionDialogClass;
+ jfieldID colorsel, main_vbox, ok_button, reset_button, cancel_button, help_button;
+} GtkColorSelectionDialog_FID_CACHE;
+
+typedef GtkColorSelectionDialog_FID_CACHE *PGtkColorSelectionDialog_FID_CACHE;
+
+typedef struct GtkBox_FID_CACHE {
+ int cached;
+ jclass GtkBoxClass;
+ jfieldID children, spacing, homogeneous;
+} GtkBox_FID_CACHE;
+
+typedef GtkBox_FID_CACHE *PGtkBox_FID_CACHE;
+
+typedef struct GtkHBox_FID_CACHE {
+ int cached;
+ jclass GtkHBoxClass;
+} GtkHBox_FID_CACHE;
+
+typedef GtkHBox_FID_CACHE *PGtkHBox_FID_CACHE;
+
+typedef struct GtkCombo_FID_CACHE {
+ int cached;
+ jclass GtkComboClass;
+ jfieldID entry, button, popup, popwin, list, entry_change_id, list_change_id, value_in_list, ok_if_empty, case_sensitive, use_arrows, use_arrows_always, current_button, activate_id;
+} GtkCombo_FID_CACHE;
+
+typedef GtkCombo_FID_CACHE *PGtkCombo_FID_CACHE;
+
+typedef struct GtkFileSelection_FID_CACHE {
+ int cached;
+ jclass GtkFileSelectionClass;
+ jfieldID dir_list, file_list, selection_entry, selection_text, main_vbox, ok_button, cancel_button, help_button, history_pulldown, history_menu, history_list, fileop_dialog, fileop_entry, fileop_file, cmpl_state, fileop_c_dir, fileop_del_file, fileop_ren_file, button_area, action_area;
+} GtkFileSelection_FID_CACHE;
+
+typedef GtkFileSelection_FID_CACHE *PGtkFileSelection_FID_CACHE;
+
+typedef struct GtkFontSelectionDialog_FID_CACHE {
+ int cached;
+ jclass GtkFontSelectionDialogClass;
+ jfieldID fontsel, main_vbox, action_area, ok_button, apply_button, cancel_button, dialog_width, auto_resize;
+} GtkFontSelectionDialog_FID_CACHE;
+
+typedef GtkFontSelectionDialog_FID_CACHE *PGtkFontSelectionDialog_FID_CACHE;
+
+typedef struct GtkCList_FID_CACHE {
+ int cached;
+ jclass GtkCListClass;
+ jfieldID clist_flags, row_mem_chunk, cell_mem_chunk, freeze_count, internal_allocation_x, internal_allocation_y, internal_allocation_width, internal_allocation_height, rows, row_center_offset, row_height, row_list, row_list_end, columns, column_title_area_x, column_title_area_y, column_title_area_width, column_title_area_height, title_window, column, clist_window, clist_window_width, clist_window_height, hoffset, voffset, shadow_type, selection_mode, selection, selection_end, undo_selection, undo_unselection, undo_anchor, button_actions0, button_actions1, button_actions2, button_actions3, button_actions4, drag_button, click_cell_row, click_cell_column, hadjustment, vadjustment, xor_gc, fg_gc, bg_gc, cursor_drag, x_drag, focus_row, anchor, anchor_state, drag_pos, htimer, vtimer, sort_type, compare, sort_column;
+} GtkCList_FID_CACHE;
+
+typedef GtkCList_FID_CACHE *PGtkCList_FID_CACHE;
+
+typedef struct GtkEditable_FID_CACHE {
+ int cached;
+ jclass GtkEditableClass;
+ jfieldID current_pos, selection_start_pos, selection_end_pos, has_selection, editable, visible, ic, ic_attr, clipboard_text;
+} GtkEditable_FID_CACHE;
+
+typedef GtkEditable_FID_CACHE *PGtkEditable_FID_CACHE;
+
+typedef struct GtkText_FID_CACHE {
+ int cached;
+ jclass GtkTextClass;
+ jfieldID first_line_start_index,first_onscreen_hor_pixel,first_onscreen_ver_pixel,default_tab_width,cursor_pos_x,cursor_pos_y,cursor_virtual_x;
+} GtkText_FID_CACHE;
+
+typedef GtkText_FID_CACHE *PGtkText_FID_CACHE;
+
+typedef struct GtkProgress_FID_CACHE {
+ int cached;
+ jclass GtkProgressClass;
+ jfieldID adjustment, offscreen_pixmap, format, x_align, y_align, show_text, activity_mode;
+} GtkProgress_FID_CACHE;
+
+typedef GtkProgress_FID_CACHE *PGtkProgress_FID_CACHE;
+
+typedef struct GtkProgressBar_FID_CACHE {
+ int cached;
+ jclass GtkProgressBarClass;
+ jfieldID bar_style, orientation, blocks, in_block, activity_pos, activity_step, activity_blocks, activity_dir;
+} GtkProgressBar_FID_CACHE;
+
+typedef GtkProgressBar_FID_CACHE *PGtkProgressBar_FID_CACHE;
+
+typedef struct GtkArg_FID_CACHE {
+ int cached;
+ jclass GtkArgClass;
+ jfieldID type, name, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11;
+} GtkArg_FID_CACHE;
+
+typedef GtkArg_FID_CACHE *PGtkArg_FID_CACHE;
+
+typedef struct GtkRequisition_FID_CACHE {
+ int cached;
+ jclass GtkRequisitionClass;
+ jfieldID width, height;
+} GtkRequisition_FID_CACHE;
+
+typedef GtkRequisition_FID_CACHE *PGtkRequisition_FID_CACHE;
+
+typedef struct GtkStyle_FID_CACHE {
+ int cached;
+ jclass GtkStyleClazz;
+ jfieldID klass, fg0_pixel, fg0_red, fg0_green, fg0_blue, fg1_pixel, fg1_red, fg1_green, fg1_blue, fg2_pixel, fg2_red, fg2_green, fg2_blue, fg3_pixel, fg3_red, fg3_green, fg3_blue, fg4_pixel, fg4_red, fg4_green, fg4_blue, bg0_pixel, bg0_red, bg0_green, bg0_blue, bg1_pixel, bg1_red, bg1_green, bg1_blue, bg2_pixel, bg2_red, bg2_green, bg2_blue, bg3_pixel, bg3_red, bg3_green, bg3_blue, bg4_pixel, bg4_red, bg4_green, bg4_blue, light0_pixel, light0_red, light0_green, light0_blue, light1_pixel, light1_red, light1_green, light1_blue, light2_pixel, light2_red, light2_green, light2_blue, light3_pixel, light3_red, light3_green, light3_blue, light4_pixel, light4_red, light4_green, light4_blue, dark0_pixel, dark0_red, dark0_green, dark0_blue, dark1_pixel, dark1_red, dark1_green, dark1_blue, dark2_pixel, dark2_red, dark2_green, dark2_blue, dark3_pixel, dark3_red, dark3_green, dark3_blue, dark4_pixel, dark4_red, dark4_green, dark4_blue, mid0_pixel, mid0_red, mid0_green, mid0_blue, mid1_pixel, mid1_red, mid1_green, mid1_blue, mid2_pixel, mid2_red, mid2_green, mid2_blue, mid3_pixel, mid3_red, mid3_green, mid3_blue, mid4_pixel, mid4_red, mid4_green, mid4_blue, text0_pixel, text0_red, text0_green, text0_blue, text1_pixel, text1_red, text1_green, text1_blue, text2_pixel, text2_red, text2_green, text2_blue, text3_pixel, text3_red, text3_green, text3_blue, text4_pixel, text4_red, text4_green, text4_blue, base0_pixel, base0_red, base0_green, base0_blue, base1_pixel, base1_red, base1_green, base1_blue, base2_pixel, base2_red, base2_green, base2_blue, base3_pixel, base3_red, base3_green, base3_blue, base4_pixel, base4_red, base4_green, base4_blue, black_pixel, black_red, black_green, black_blue, white_pixel, white_red, white_green, white_blue, font, fg_gc0, fg_gc1, fg_gc2, fg_gc3, fg_gc4, bg_gc0, bg_gc1, bg_gc2, bg_gc3, bg_gc4, light_gc0, light_gc1, light_gc2, light_gc3, light_gc4, dark_gc0, dark_gc1, dark_gc2, dark_gc3, dark_gc4, mid_gc0, mid_gc1, mid_gc2, mid_gc3, mid_gc4, text_gc0, text_gc1, text_gc2, text_gc3, text_gc4, base_gc0, base_gc1, base_gc2, base_gc3, base_gc4, black_gc, white_gc, bg_pixmap0, bg_pixmap1, bg_pixmap2, bg_pixmap3, bg_pixmap4, bg_pixmap5;
+ jfieldID ref_count, attach_count, depth, colormap, engine, engine_data, rc_style, styles;
+} GtkStyle_FID_CACHE;
+
+typedef GtkStyle_FID_CACHE *PGtkStyle_FID_CACHE;
+
+typedef struct GtkStyleClass_FID_CACHE {
+ int cached;
+ jclass GtkStyleClassClazz;
+ jfieldID xthickness, ythickness;
+} GtkStyleClass_FID_CACHE;
+
+typedef GtkStyleClass_FID_CACHE *PGtkStyleClass_FID_CACHE;
+
+typedef struct GtkCListRow_FID_CACHE {
+ int cached;
+ jclass GtkCListRowClass;
+ jfieldID cell, state, foreground_red, foreground_green, foreground_blue, foreground_pixel, background_red, background_green, background_blue, background_pixel, style, data, destroy, fg_set, bg_set, selectable;
+} GtkCListRow_FID_CACHE;
+
+typedef GtkCListRow_FID_CACHE *PGtkCListRow_FID_CACHE;
+
+typedef struct GtkCListColumn_FID_CACHE {
+ int cached;
+ jclass GtkCListColumnClass;
+ jfieldID title, area_x, area_y, area_width, area_height, button, window, width, min_width, max_width, justification, visible, width_set, resizeable, auto_resize, button_passive;
+} GtkCListColumn_FID_CACHE;
+
+typedef GtkCListColumn_FID_CACHE *PGtkCListColumn_FID_CACHE;
+
+typedef struct GtkCTreeRow_FID_CACHE {
+ int cached;
+ jclass GtkCTreeRowClass;
+ jfieldID parent, sibling, children, pixmap_closed, mask_closed, pixmap_opened, mask_opened, level, is_leaf, expanded;
+} GtkCTreeRow_FID_CACHE;
+
+typedef GtkCTreeRow_FID_CACHE *PGtkCTreeRow_FID_CACHE;
+
+typedef struct GtkCTree_FID_CACHE {
+ int cached;
+ jclass GtkCTreeClass;
+ jfieldID tree_indent, tree_column;
+
+} GtkCTree_FID_CACHE;
+
+typedef GtkCTree_FID_CACHE *PGtkCTree_FID_CACHE;
+
+/* ----------- cache function prototypes ----------- */
+
+void cacheGdkColorFids(JNIEnv *env, jobject lpGdkColor, PGdkColor_FID_CACHE lpCache);
+void cacheGdkEventKeyFids(JNIEnv *env, jobject lpGdkEventKey, PGdkEventKey_FID_CACHE lpCache);
+void cacheGdkEventButtonFids(JNIEnv *env, jobject lpGdkEventButton, PGdkEventButton_FID_CACHE lpCache);
+void cacheGdkEventMotionFids(JNIEnv *env, jobject lpGdkEventMotion, PGdkEventMotion_FID_CACHE lpCache);
+void cacheGdkEventExposeFids(JNIEnv *env, jobject lpGdkEventExpose, PGdkEventExpose_FID_CACHE lpCache);
+void cacheGdkFontFids(JNIEnv *env, jobject lpGdkFont, PGdkFont_FID_CACHE lpCache);
+void cacheGdkGCValuesFids(JNIEnv *env, jobject lpGdkGCValues, PGdkGCValues_FID_CACHE lpCache);
+void cacheGdkImageFids(JNIEnv *env, jobject lpGdkImage, PGdkImage_FID_CACHE lpCache);
+void cacheGdkPointFids(JNIEnv *env, jobject lpGdkPoint, PGdkPoint_FID_CACHE lpCache);
+void cacheGdkRectangleFids(JNIEnv *env, jobject lpGdkRectangle, PGdkRectangle_FID_CACHE lpCache);
+void cacheGdkVisualFids(JNIEnv *env, jobject lpGdkVisual, PGdkVisual_FID_CACHE lpCache);
+
+void cacheGtkObjectFids(JNIEnv *env, jobject lpGtkObject, PGtkObject_FID_CACHE lpCache);
+void cacheGtkDataFids(JNIEnv *env, jobject lpGtkData, PGtkData_FID_CACHE lpCache);
+void cacheGtkAdjustmentFids(JNIEnv *env, jobject lpGtkAdjustment, PGtkAdjustment_FID_CACHE lpCache);
+void cacheGtkWidgetFids(JNIEnv *env, jobject lpGtkWidget, PGtkWidget_FID_CACHE lpCache);
+void cacheGtkContainerFids(JNIEnv *env, jobject lpGtkContainer, PGtkContainer_FID_CACHE lpCache);
+void cacheGtkBinFids(JNIEnv *env, jobject lpGtkBin, PGtkBin_FID_CACHE lpCache);
+void cacheGtkMenuFids(JNIEnv *env, jobject lpGtkMenu, PGtkMenu_FID_CACHE lpCache);
+void cacheGtkMenuShellFids(JNIEnv *env, jobject lpGtkMenuShell, PGtkMenuShell_FID_CACHE lpCache);
+void cacheGtkItemFids(JNIEnv *env, jobject lpGtkItem, PGtkItem_FID_CACHE lpCache);
+void cacheGtkMenuItemFids(JNIEnv *env, jobject lpGtkMenuItem, PGtkMenuItem_FID_CACHE lpCache);
+void cacheGtkCheckMenuItemFids(JNIEnv *env, jobject lpGtkCheckMenuItem, PGtkCheckMenuItem_FID_CACHE lpCache);
+void cacheGtkWindowFids(JNIEnv *env, jobject lpGtkWindow, PGtkWindow_FID_CACHE lpCache);
+void cacheGtkColorSelectionDialogFids(JNIEnv *env, jobject lpGtkColorSelectionDialog, PGtkColorSelectionDialog_FID_CACHE lpCache);
+void cacheGtkFileSelectionFids(JNIEnv *env, jobject lpGtkFileSelection, PGtkFileSelection_FID_CACHE lpCache);
+void cacheGtkFontSelectionDialogFids(JNIEnv *env, jobject lpGtkFontSelectionDialog, PGtkFontSelectionDialog_FID_CACHE lpCache);
+void cacheGtkBoxFids(JNIEnv *env, jobject lpGtkBox, PGtkBox_FID_CACHE lpCache);
+void cacheGtkHBoxFids(JNIEnv *env, jobject lpGtkHBox, PGtkHBox_FID_CACHE lpCache);
+void cacheGtkComboFids(JNIEnv *env, jobject lpGtkCombo, PGtkCombo_FID_CACHE lpCache);
+void cacheGtkCListFids(JNIEnv *env, jobject lpGtkCList, PGtkCList_FID_CACHE lpCache);
+void cacheGtkEditableFids(JNIEnv *env, jobject lpGtkEditable, PGtkEditable_FID_CACHE lpCache);
+void cacheGtkTextFids(JNIEnv *env, jobject lpGtkText, PGtkText_FID_CACHE lpCache);
+void cacheGtkProgressFids(JNIEnv *env, jobject lpGtkProgress, PGtkProgress_FID_CACHE lpCache);
+void cacheGtkProgressBarFids(JNIEnv *env, jobject lpGtkProgressBar, PGtkProgressBar_FID_CACHE lpCache);
+
+void cacheGtkAllocationFids(JNIEnv *env, jobject lpGtkAllocation, PGtkAllocation_FID_CACHE lpCache);
+void cacheGtkArgFids(JNIEnv *env, jobject lpGtkArg, PGtkArg_FID_CACHE lpCache);
+void cacheGtkRequisitionFids(JNIEnv *env, jobject lpGtkRequisition, PGtkRequisition_FID_CACHE lpCache);
+void cacheGtkStyleFids(JNIEnv *env, jobject lpGtkStyle, PGtkStyle_FID_CACHE lpCache);
+void cacheGtkStyleClassFids(JNIEnv *env, jobject lpGtkStyleClass, PGtkStyleClass_FID_CACHE lpCache);
+void cacheGtkCListColumnFids(JNIEnv *env, jobject lpGtkCListColumn, PGtkCListColumn_FID_CACHE lpCache);
+void cacheGtkCListRowFids(JNIEnv *env, jobject lpGtkCListRow, PGtkCListRow_FID_CACHE lpCache);
+void cacheGtkCTreeRowFids(JNIEnv *env, jobject lpGtkCTreeRow, PGtkCTreeRow_FID_CACHE lpCache);
+void cacheGtkCTreeFids(JNIEnv *env, jobject lpGtkCTree, PGtkCTree_FID_CACHE lpCache);
+
+/* ----------- swt getter and setter prototypes ----------- */
+/**
+ * These functions get or set object field ids assuming that the
+ * fids for these objects have already been cached.
+ *
+ * The header file just contains function prototypes
+ */
+void getGdkColorFields(JNIEnv *env, jobject lpObject, GdkColor *lpGdkColor, GdkColor_FID_CACHE *lpGdkColorFc);
+void setGdkColorFields(JNIEnv *env, jobject lpObject, GdkColor *lpGdkColor, GdkColor_FID_CACHE *lpGdkColorFc);
+void getGdkEventKeyFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventKey_FID_CACHE *lpGdkEventKeyFc);
+void setGdkEventKeyFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventKey_FID_CACHE *lpGdkEventKeyFc);
+void getGdkEventButtonFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventButton_FID_CACHE *lpGdkEventButtonFc);
+void setGdkEventButtonFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventButton_FID_CACHE *lpGdkEventButtonFc);
+void getGdkEventMotionFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventMotion_FID_CACHE *lpGdkEventMotionFc);
+void setGdkEventMotionFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventMotion_FID_CACHE *lpGdkEventMotionFc);
+void getGdkEventExposeFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventExpose_FID_CACHE *lpGdkEventExposeFc);
+void setGdkEventExposeFields(JNIEnv *env, jobject lpObject, GdkEvent *lpGdkEvent, GdkEventExpose_FID_CACHE *lpGdkEventExposeFc);
+void getGdkFontFields(JNIEnv *env, jobject lpObject, GdkFont *lpGdkFont, GdkFont_FID_CACHE *lpGdkFontFc);
+void setGdkFontFields(JNIEnv *env, jobject lpObject, GdkFont *lpGdkFont, GdkFont_FID_CACHE *lpGdkFontFc);
+void getGdkGCValuesFields(JNIEnv *env, jobject lpObject, GdkGCValues *lpGdkGCValues, GdkGCValues_FID_CACHE *lpGdkGCValuesFc);
+void setGdkGCValuesFields(JNIEnv *env, jobject lpObject, GdkGCValues *lpGdkGCValues, GdkGCValues_FID_CACHE *lpGdkGCValuesFc);
+void getGdkImageFields(JNIEnv *env, jobject lpObject, GdkImage *lpGdkImage, GdkImage_FID_CACHE *lpGdkImageFc);
+void setGdkImageFields(JNIEnv *env, jobject lpObject, GdkImage *lpGdkImage, GdkImage_FID_CACHE *lpGdkImageFc);
+void getGdkPointFields(JNIEnv *env, jobject lpObject, GdkPoint *lpGdkPoint, GdkPoint_FID_CACHE *lpGdkPointFc);
+void setGdkPointFields(JNIEnv *env, jobject lpObject, GdkPoint *lpGdkPoint, GdkPoint_FID_CACHE *lpGdkPointFc);
+void getGdkRectangleFields(JNIEnv *env, jobject lpObject, GdkRectangle *lpGdkRectangle, GdkRectangle_FID_CACHE *lpGdkRectangleFc);
+void setGdkRectangleFields(JNIEnv *env, jobject lpObject, GdkRectangle *lpGdkRectangle, GdkRectangle_FID_CACHE *lpGdkRectangleFc);
+void getGdkVisualFields(JNIEnv *env, jobject lpObject, GdkVisual *lpGdkVisual, GdkVisual_FID_CACHE *lpGdkVisualFc);
+void setGdkVisualFields(JNIEnv *env, jobject lpObject, GdkVisual *lpGdkVisual, GdkVisual_FID_CACHE *lpGdkVisualFc);
+void getGtkAllocationFields(JNIEnv *env, jobject lpObject, GtkAllocation *lpGtkAllocation, GtkAllocation_FID_CACHE *lpGtkAllocationFc);
+void setGtkAllocationFields(JNIEnv *env, jobject lpObject, GtkAllocation *lpGtkAllocation, GtkAllocation_FID_CACHE *lpGtkAllocationFc);
+void getGtkArgFields(JNIEnv *env, jobject lpObject, GtkArg *lpGtkArg, GtkArg_FID_CACHE *lpGtkArgFc);
+void setGtkArgFields(JNIEnv *env, jobject lpObject, GtkArg *lpGtkArg, GtkArg_FID_CACHE *lpGtkArgFc);
+void getGtkBinFields(JNIEnv *env, jobject lpObject, GtkBin *lpGtkBin, GtkBin_FID_CACHE *lpGtkBinFc);
+void setGtkBinFields(JNIEnv *env, jobject lpObject, GtkBin *lpGtkBin, GtkBin_FID_CACHE *lpGtkBinFc);
+void getGtkCListFields(JNIEnv *env, jobject lpObject, GtkCList *lpGtkCList, GtkCList_FID_CACHE *lpGtkCListFc);
+void setGtkCListFields(JNIEnv *env, jobject lpObject, GtkCList *lpGtkCList, GtkCList_FID_CACHE *lpGtkCListFc);
+void getGtkCListRowFields(JNIEnv *env, jobject lpObject, GtkCListRow *lpGtkCListRow, GtkCListRow_FID_CACHE *lpGtkCListRowFc);
+void setGtkCListRowFields(JNIEnv *env, jobject lpObject, GtkCListRow *lpGtkCListRow, GtkCListRow_FID_CACHE *lpGtkCListRowFc);
+void getGtkCListColumnFields(JNIEnv *env, jobject lpObject, GtkCListColumn *lpGtkCListColumn, GtkCListColumn_FID_CACHE *lpGtkCListColumnFc);
+void setGtkCListColumnFields(JNIEnv *env, jobject lpObject, GtkCListColumn *lpGtkCListColumn, GtkCListColumn_FID_CACHE *lpGtkCListColumnFc);
+void getGtkCTreeRowFields(JNIEnv *env, jobject lpObject, GtkCTreeRow *lpGtkCTreeRow, GtkCTreeRow_FID_CACHE *lpGtkCTreeRowFc);
+void setGtkCTreeRowFields(JNIEnv *env, jobject lpObject, GtkCTreeRow *lpGtkCTreeRow, GtkCTreeRow_FID_CACHE *lpGtkCTreeRowFc);
+void getGtkColorSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkColorSelectionDialog *lpGtkColorSelectionDialog, GtkColorSelectionDialog_FID_CACHE *lpGtkColorSelectionDialogFc);
+void setGtkColorSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkColorSelectionDialog *lpGtkColorSelectionDialog, GtkColorSelectionDialog_FID_CACHE *lpGtkColorSelectionDialogFc);
+void getGtkComboFields(JNIEnv *env, jobject lpObject, GtkCombo *lpGtkCombo, GtkCombo_FID_CACHE *lpGtkComboFc);
+void setGtkComboFields(JNIEnv *env, jobject lpObject, GtkCombo *lpGtkCombo, GtkCombo_FID_CACHE *lpGtkComboFc);
+void getGtkContainerFields(JNIEnv *env, jobject lpObject, GtkContainer *lpGtkContainer, GtkContainer_FID_CACHE *lpGtkContainerFc);
+void setGtkContainerFields(JNIEnv *env, jobject lpObject, GtkContainer *lpGtkContainer, GtkContainer_FID_CACHE *lpGtkContainerFc);
+void getGtkDataFields(JNIEnv *env, jobject lpObject, GtkData *lpGtkData, GtkData_FID_CACHE *lpGtkDataFc);
+void setGtkDataFields(JNIEnv *env, jobject lpObject, GtkData *lpGtkData, GtkData_FID_CACHE *lpGtkDataFc);
+void getGtkEditableFields(JNIEnv *env, jobject lpObject, GtkEditable *lpGtkEditable, GtkEditable_FID_CACHE *lpGtkEditableFc);
+void setGtkEditableFields(JNIEnv *env, jobject lpObject, GtkEditable *lpGtkEditable, GtkEditable_FID_CACHE *lpGtkEditableFc);
+void getGtkFrameFields(JNIEnv *env, jobject lpObject, GtkFrame *lpGtkFrame, GtkFrame_FID_CACHE *lpGtkFrameFc);
+void setGtkFrameFields(JNIEnv *env, jobject lpObject, GtkFrame *lpGtkFrame, GtkFrame_FID_CACHE *lpGtkFrameFc);
+void getGtkTextFields(JNIEnv *env, jobject lpObject, GtkText *lpGtkText, GtkText_FID_CACHE *lpGtkTextFc);
+void setGtkTextFields(JNIEnv *env, jobject lpObject, GtkText *lpGtkText, GtkText_FID_CACHE *lpGtkTextFc);
+void getGtkFileSelectionFields(JNIEnv *env, jobject lpObject, GtkFileSelection *lpGtkFileSelection, GtkFileSelection_FID_CACHE *lpGtkFileSelectionFc);
+void setGtkFileSelectionFields(JNIEnv *env, jobject lpObject, GtkFileSelection *lpGtkFileSelection, GtkFileSelection_FID_CACHE *lpGtkFileSelectionFc);
+void getGtkFontSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkFontSelectionDialog *lpGtkFontSelectionDialog, GtkFontSelectionDialog_FID_CACHE *lpGtkFontSelectionDialogFc);
+void setGtkFontSelectionDialogFields(JNIEnv *env, jobject lpObject, GtkFontSelectionDialog *lpGtkFontSelectionDialog, GtkFontSelectionDialog_FID_CACHE *lpGtkFontSelectionDialogFc);
+void getGtkObjectFields(JNIEnv *env, jobject lpObject, GtkObject *lpGtkObject, GtkObject_FID_CACHE *lpGtkObjectFc);
+void setGtkObjectFields(JNIEnv *env, jobject lpObject, GtkObject *lpGtkObject, GtkObject_FID_CACHE *lpGtkObjectFc);
+void getGtkProgressFields(JNIEnv *env, jobject lpObject, GtkProgress *lpGtkProgress, GtkProgress_FID_CACHE *lpGtkProgressFc);
+void setGtkProgressFields(JNIEnv *env, jobject lpObject, GtkProgress *lpGtkProgress, GtkProgress_FID_CACHE *lpGtkProgressFc);
+void getGtkProgressBarFields(JNIEnv *env, jobject lpObject, GtkProgressBar *lpGtkProgressBar, GtkProgressBar_FID_CACHE *lpGtkProgressBarFc);
+void setGtkProgressBarFields(JNIEnv *env, jobject lpObject, GtkProgressBar *lpGtkProgressBar, GtkProgressBar_FID_CACHE *lpGtkProgressBarFc);
+void getGtkRequisitionFields(JNIEnv *env, jobject lpObject, GtkRequisition *lpGtkRequisition, GtkRequisition_FID_CACHE *lpGtkRequisitionFc);
+void setGtkRequisitionFields(JNIEnv *env, jobject lpObject, GtkRequisition *lpGtkRequisition, GtkRequisition_FID_CACHE *lpGtkRequisitionFc);
+void getGtkStyleFields(JNIEnv *env, jobject lpObject, GtkStyle *lpGtkStyle, GtkStyle_FID_CACHE *lpGtkStyleFc);
+void setGtkStyleFields(JNIEnv *env, jobject lpObject, GtkStyle *lpGtkStyle, GtkStyle_FID_CACHE *lpGtkStyleFc);
+void getGtkStyleClassFields(JNIEnv *env, jobject lpObject, GtkStyleClass *lpGtkStyleClass, GtkStyleClass_FID_CACHE *lpGtkStyleClassFc);
+void setGtkStyleClassFields(JNIEnv *env, jobject lpObject, GtkStyleClass *lpGtkStyleClass, GtkStyleClass_FID_CACHE *lpGtkStyleClassFc);
+void getGtkWidgetFields(JNIEnv *env, jobject lpObject, GtkWidget *lpGtkWidget, GtkWidget_FID_CACHE *lpGtkWidgetFc);
+void setGtkWidgetFields(JNIEnv *env, jobject lpObject, GtkWidget *lpGtkWidget, GtkWidget_FID_CACHE *lpGtkWidgetFc);
+void getGtkWindowFields(JNIEnv *env, jobject lpObject, GtkWindow *lpGtkWindow, GtkWindow_FID_CACHE *lpGtkWindowFc);
+void setGtkWindowFields(JNIEnv *env, jobject lpObject, GtkWindow *lpGtkWindow, GtkWindow_FID_CACHE *lpGtkWindowFc);
+void getGtkCheckMenuItemFields(JNIEnv *env, jobject lpObject, GtkCheckMenuItem *lpGtkCheckMenuItem, GtkCheckMenuItem_FID_CACHE *lpGtkCheckMenuItemFc);
+void setGtkCheckMenuItemFields(JNIEnv *env, jobject lpObject, GtkCheckMenuItem *lpGtkCheckMenuItem, GtkCheckMenuItem_FID_CACHE *lpGtkCheckMenuItemFc);
+void getGtkAdjustmentFields(JNIEnv *env, jobject lpObject, GtkAdjustment *lpGtkAdjustment, GtkAdjustment_FID_CACHE *lpGtkAdjustmentFc);
+void setGtkAdjustmentFields(JNIEnv *env, jobject lpObject, GtkAdjustment *lpGtkAdjustment, GtkAdjustment_FID_CACHE *lpGtkAdjustmentFc);
+void getGtkBoxFields(JNIEnv *env, jobject lpObject, GtkBox *lpGtkBox, GtkBox_FID_CACHE *lpGtkBoxFc);
+void setGtkBoxFields(JNIEnv *env, jobject lpObject, GtkBox *lpGtkBox, GtkBox_FID_CACHE *lpGtkBoxFc);
+void getGtkHBoxFields(JNIEnv *env, jobject lpObject, GtkHBox *lpGtkHBox, GtkHBox_FID_CACHE *lpGtkHBoxFc);
+void setGtkHBoxFields(JNIEnv *env, jobject lpObject, GtkHBox *lpGtkHBox, GtkHBox_FID_CACHE *lpGtkHBoxFc);
+void getGtkMenuFields(JNIEnv *env, jobject lpObject, GtkMenu *lpGtkMenu, GtkMenu_FID_CACHE *lpGtkMenuFc);
+void setGtkMenuFields(JNIEnv *env, jobject lpObject, GtkMenu *lpGtkMenu, GtkMenu_FID_CACHE *lpGtkMenuFc);
+void getGtkMenuShellFields(JNIEnv *env, jobject lpObject, GtkMenuShell *lpGtkMenuShell, GtkMenuShell_FID_CACHE *lpGtkMenuShellFc);
+void setGtkMenuShellFields(JNIEnv *env, jobject lpObject, GtkMenuShell *lpGtkMenuShell, GtkMenuShell_FID_CACHE *lpGtkMenuShellFc);
+void getGtkMenuItemFields(JNIEnv *env, jobject lpObject, GtkMenuItem *lpGtkMenuItem, GtkMenuItem_FID_CACHE *lpGtkMenuItemFc);
+void setGtkMenuItemFields(JNIEnv *env, jobject lpObject, GtkMenuItem *lpGtkMenuItem, GtkMenuItem_FID_CACHE *lpGtkMenuItemFc);
+void getGtkCTreeFields(JNIEnv *env, jobject lpObject, GtkCTree *lpGtkCTree, GtkCTree_FID_CACHE *lpGtkCTreeFc);
+void setGtkCTreeFields(JNIEnv *env, jobject lpObject, GtkCTree *lpGtkCTree, GtkCTree_FID_CACHE *lpGtkCTreeFc);
+
+extern GdkColor_FID_CACHE GdkColorFc;
+extern GdkEventKey_FID_CACHE GdkEventKeyFc;
+extern GdkEventButton_FID_CACHE GdkEventButtonFc;
+extern GdkEventMotion_FID_CACHE GdkEventMotionFc;
+extern GdkEventExpose_FID_CACHE GdkEventExposeFc;
+extern GdkFont_FID_CACHE GdkFontFc;
+extern GdkGCValues_FID_CACHE GdkGCValuesFc;
+extern GdkImage_FID_CACHE GdkImageFc;
+extern GdkPoint_FID_CACHE GdkPointFc;
+extern GdkRectangle_FID_CACHE GdkRectangleFc;
+extern GdkVisual_FID_CACHE GdkVisualFc;
+extern GtkObject_FID_CACHE GtkObjectFc;
+extern GtkData_FID_CACHE GtkDataFc;
+extern GtkAdjustment_FID_CACHE GtkAdjustmentFc;
+extern GtkAllocation_FID_CACHE GtkAllocationFc;
+extern GtkWidget_FID_CACHE GtkWidgetFc;
+extern GtkContainer_FID_CACHE GtkContainerFc;
+extern GtkBin_FID_CACHE GtkBinFc;
+extern GtkMenu_FID_CACHE GtkMenuFc;
+extern GtkItem_FID_CACHE GtkItemFc;
+extern GtkMenuShell_FID_CACHE GtkMenuShellFc;
+extern GtkMenuItem_FID_CACHE GtkMenuItemFc;
+extern GtkCheckMenuItem_FID_CACHE GtkCheckMenuItemFc;
+extern GtkWindow_FID_CACHE GtkWindowFc;
+extern GtkColorSelectionDialog_FID_CACHE GtkColorSelectionDialogFc;\
+extern GtkBox_FID_CACHE GtkBoxFc;
+extern GtkHBox_FID_CACHE GtkHBoxFc;
+extern GtkCombo_FID_CACHE GtkComboFc;
+extern GtkFileSelection_FID_CACHE GtkFileSelectionFc;
+extern GtkFrame_FID_CACHE GtkFrameFc;
+extern GtkFontSelectionDialog_FID_CACHE GtkFontSelectionDialogFc;
+extern GtkCList_FID_CACHE GtkCListFc;
+extern GtkEditable_FID_CACHE GtkEditableFc;
+extern GtkText_FID_CACHE GtkTextFc;
+extern GtkProgress_FID_CACHE GtkProgressFc;
+extern GtkProgressBar_FID_CACHE GtkProgressBarFc;
+extern GtkArg_FID_CACHE GtkArgFc;
+extern GtkRequisition_FID_CACHE GtkRequisitionFc;
+extern GtkStyle_FID_CACHE GtkStyleFc;
+extern GtkStyleClass_FID_CACHE GtkStyleClassFc;
+extern GtkCListRow_FID_CACHE GtkCListRowFc;
+extern GtkCListColumn_FID_CACHE GtkCListColumnFc;
+extern GtkCTreeRow_FID_CACHE GtkCTreeRowFc;
+extern GtkCTree_FID_CACHE GtkCTreeFc;
+
+#endif // INC_structs_H
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c
new file mode 100644
index 0000000000..ea1b1f4960
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/swt.c
@@ -0,0 +1,7647 @@
+/*
+ * Copyright (c) IBM Corp. 2000, 2001. All rights reserved.
+ *
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ */
+
+/**
+ * SWT OS natives implementation.
+ */
+
+/*#define PRINT_FAILED_RCODES*/
+#define NDEBUG
+
+#include "swt.h"
+#include "structs.h"
+
+#include <stdio.h>
+#include <assert.h>
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: GTK_WIDGET_TYPE
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1TYPE
+ (JNIEnv *env, jclass that, jint wid)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_TYPE");
+#endif
+
+ return GTK_WIDGET_TYPE((GtkWidget*)wid);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_get_type
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1get_1type
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_get_type");
+#endif
+
+ return gtk_label_get_type ();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_object_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1unref
+ (JNIEnv *env, jclass that, jint object)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_unref");
+#endif
+
+ gtk_object_unref((GtkObject*)object);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_object_ref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1destroy
+ (JNIEnv *env, jclass that, jint object)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_destroy");
+#endif
+
+ gtk_object_destroy((GtkObject*)object);
+}
+
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1get_1data_1by_1id
+ (JNIEnv *env, jclass that, jint object, jint data_id)
+{
+ jint result;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_get_data_by_id");
+#endif
+ return (jint) gtk_object_get_data_by_id((GtkObject*)object, (GQuark) data_id);
+}
+
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1set_1data_1by_1id
+ (JNIEnv *env, jclass that, jint object, jint data_id, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_set_data_by_id");
+#endif
+
+ gtk_object_set_data_by_id ((GtkObject*)object, (GQuark) data_id, (gpointer) data);
+}
+
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1quark_1from_1string
+ (JNIEnv *env, jclass that, jbyteArray string)
+{
+ jint result;
+ jbyte *string1 = NULL;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_quark_from_string");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ result = g_quark_from_string((gchar *) string1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+ return result;
+}
+
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1block_1by_1data
+ (JNIEnv *env, jclass that, jint object, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_handler_block_by_data");
+#endif
+
+ gtk_signal_handler_block_by_data((GtkObject*)object, (gpointer) data);
+}
+
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1unblock_1by_1data
+ (JNIEnv *env, jclass that, jint object, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_handler_unblock_by_data");
+#endif
+
+ gtk_signal_handler_unblock_by_data((GtkObject*)object, (gpointer) data);
+}
+
+
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1rgb_1init
+ (JNIEnv *env, jclass cl)
+{
+ gdk_rgb_init();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1FLAGS
+ (JNIEnv *env, jclass that, jint wid)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_FLAGS");
+#endif
+
+ return (jint) GTK_WIDGET_FLAGS((GtkWidget*)wid);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1SET_1FLAGS
+ (JNIEnv *env, jclass that, jint wid, jint flag)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_SET_FLAGS");
+#endif
+
+ GTK_WIDGET_SET_FLAGS((GtkWidget*)wid, flag);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1UNSET_1FLAGS
+ (JNIEnv *env, jclass that, jint wid, jint flag)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_UNSET_FLAGS");
+#endif
+
+ GTK_WIDGET_UNSET_FLAGS((GtkWidget*)wid, flag);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1NO_1WINDOW
+ (JNIEnv *env, jclass that, jint wid)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_NO_WINDOW");
+#endif
+
+ return (jboolean) GTK_WIDGET_NO_WINDOW((GtkWidget*)wid);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: GDK_ROOT_PARENT
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GDK_1ROOT_1PARENT
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GDK_ROOT_PARENT");
+#endif
+
+ return (jint) GDK_ROOT_PARENT();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1SENSITIVE
+ (JNIEnv *env, jclass that, jint wid)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_SENSITIVE");
+#endif
+
+ return (jboolean) GTK_WIDGET_SENSITIVE((GtkWidget*)wid);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1IS_1SENSITIVE
+ (JNIEnv *env, jclass that, jint wid)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "GTK_WIDGET_IS_SENSITIVE");
+#endif
+
+ return (jboolean) GTK_WIDGET_IS_SENSITIVE((GtkWidget*)wid);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_accel_group_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1accel_1group_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_accel_group_new");
+#endif
+
+ return (jint)gtk_accel_group_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_accel_group_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1accel_1group_1unref
+ (JNIEnv *env, jclass that, jint accel_group)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_accel_group_unref");
+#endif
+
+ gtk_accel_group_unref((GtkAccelGroup*)accel_group);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_adjustment_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1new
+ (JNIEnv *env, jclass that, jfloat value, jfloat lower, jfloat upper, jfloat step_increment, jfloat page_increment, jfloat page_size)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_adjustment_new");
+#endif
+
+ return (jint)gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_adjustment_changed
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1changed
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_adjustment_changed");
+#endif
+
+ gtk_adjustment_changed((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_adjustment_value_changed
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1value_1changed
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_adjustment_value_changed");
+#endif
+
+ gtk_adjustment_value_changed((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_adjustment_set_value
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1set_1value
+ (JNIEnv *env, jclass that, jint adjustment, jfloat value)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_adjustment_set_value");
+#endif
+
+ gtk_adjustment_set_value((GtkAdjustment*)adjustment, value);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_arrow_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1arrow_1new
+ (JNIEnv *env, jclass that, jint arrow_type, jint shadow_type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_arrow_new");
+#endif
+
+ return (jint)gtk_arrow_new((GtkArrowType)arrow_type, (GtkShadowType)shadow_type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_arrow_set
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1arrow_1set
+ (JNIEnv *env, jclass that, jint arrow, jint arrow_type, jint shadow_type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_arrow_set");
+#endif
+
+ gtk_arrow_set((GtkArrow*)arrow, (GtkArrowType)arrow_type, (GtkShadowType)shadow_type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_box_pack_start
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1box_1pack_1start
+ (JNIEnv *env, jclass that, jint box, jint child, jboolean expand, jboolean fill, jint padding)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_box_pack_start");
+#endif
+
+ gtk_box_pack_start((GtkBox*)box, (GtkWidget*)child, (gboolean)expand, (gboolean)fill, padding);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_box_pack_end
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1box_1pack_1end
+ (JNIEnv *env, jclass that, jint box, jint child, jboolean expand, jboolean fill, jint padding)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_box_pack_end");
+#endif
+
+ gtk_box_pack_end((GtkBox*)box, (GtkWidget*)child, (gboolean)expand, (gboolean)fill, padding);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_button_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1button_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_button_new");
+#endif
+
+ return (jint)gtk_button_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_button_new_with_label
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1button_1new_1with_1label
+ (JNIEnv *env, jclass that, jbyteArray label)
+{
+ jint rc;
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_button_new_with_label");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ rc = (jint)gtk_button_new_with_label((gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_check_button_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1button_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_check_button_new");
+#endif
+
+ return (jint)gtk_check_button_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_check_menu_item_new_with_label
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1new_1with_1label
+ (JNIEnv *env, jclass that, jbyteArray label)
+{
+ jint rc;
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_check_menu_item_new_with_label");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ rc = (jint)gtk_check_menu_item_new_with_label((gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_check_menu_item_set_active
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1set_1active
+ (JNIEnv *env, jclass that, jint check_menu_item, jboolean is_active)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_check_menu_item_set_active");
+#endif
+
+ gtk_check_menu_item_set_active((GtkCheckMenuItem*)check_menu_item, (gboolean)is_active);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_check_menu_item_set_show_toggle
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1set_1show_1toggle
+ (JNIEnv *env, jclass that, jint menu_item, jboolean always)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_check_menu_item_set_show_toggle");
+#endif
+
+ gtk_check_menu_item_set_show_toggle((GtkCheckMenuItem*)menu_item, (gboolean)always);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_color_selection_set_color
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1set_1color
+ (JNIEnv *env, jclass that, jint colorsel, jdoubleArray color)
+{
+ jdouble *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_color_selection_set_color");
+#endif
+
+ if (color) {
+ color1 = (*env)->GetDoubleArrayElements(env, color, NULL);
+ }
+ gtk_color_selection_set_color((GtkColorSelection*)colorsel, (gdouble*)color1);
+ if (color) {
+ (*env)->ReleaseDoubleArrayElements(env, color, color1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_color_selection_get_color
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1get_1color
+ (JNIEnv *env, jclass that, jint colorsel, jdoubleArray color)
+{
+ jdouble *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_color_selection_get_color");
+#endif
+
+ if (color) {
+ color1 = (*env)->GetDoubleArrayElements(env, color, NULL);
+ }
+ gtk_color_selection_get_color((GtkColorSelection*)colorsel, (gdouble*)color1);
+ if (color) {
+ (*env)->ReleaseDoubleArrayElements(env, color, color1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_color_selection_dialog_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1dialog_1new
+ (JNIEnv *env, jclass that, jbyteArray title)
+{
+ jint rc;
+ jbyte *title1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_color_selection_dialog_new");
+#endif
+
+ if (title) {
+ title1 = (*env)->GetByteArrayElements(env, title, NULL);
+ }
+ rc = (jint)gtk_color_selection_dialog_new((gchar*)title1);
+ if (title) {
+ (*env)->ReleaseByteArrayElements(env, title, title1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_combo_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_combo_new");
+#endif
+
+ return (jint)gtk_combo_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_combo_set_popdown_strings
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1set_1popdown_1strings
+ (JNIEnv *env, jclass that, jint combo, jint strings)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_combo_set_popdown_strings");
+#endif
+
+ gtk_combo_set_popdown_strings((GtkCombo*)combo, (GList*)strings);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_container_add
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1add
+ (JNIEnv *env, jclass that, jint container, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_container_add");
+#endif
+
+ gtk_container_add((GtkContainer*)container, (GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_container_remove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1remove
+ (JNIEnv *env, jclass that, jint container, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_container_remove");
+#endif
+
+ gtk_container_remove((GtkContainer*)container, (GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_container_children
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1children
+ (JNIEnv *env, jclass that, jint container)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_container_children");
+#endif
+
+ return (jint)gtk_container_children((GtkContainer*)container);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1new
+ (JNIEnv *env, jclass that, jint columns, jint tree_column)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_new");
+#endif
+
+ return (jint)gtk_ctree_new((gint)columns, (gint)tree_column);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_insert_node
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1insert_1node
+ (JNIEnv *env, jclass that, jint ctree, jint parent, jint sibling, jintArray text, jbyte spacing, jint pixmap_closed, jint mask_closed, jint pixmap_opened, jint mask_opened, jboolean is_leaf, jboolean expanded)
+{
+ jint rc;
+ jint *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_insert_node");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetIntArrayElements(env, text, NULL);
+ }
+ rc = (jint)gtk_ctree_insert_node((GtkCTree*)ctree, (GtkCTreeNode*)parent, (GtkCTreeNode*)sibling, (gchar**)text1, (guint8)spacing, (GdkPixmap*)pixmap_closed, (GdkBitmap*)mask_closed, (GdkPixmap*)pixmap_opened, (GdkBitmap*)mask_opened, (gboolean)is_leaf, (gboolean)expanded);
+ if (text) {
+ (*env)->ReleaseIntArrayElements(env, text, text1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_remove_node
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1remove_1node
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_remove_node");
+#endif
+
+ gtk_ctree_remove_node((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_post_recursive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1post_1recursive
+ (JNIEnv *env, jclass that, jint ctree, jint node, jint func, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_post_recursive");
+#endif
+
+ gtk_ctree_post_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node, (GtkCTreeFunc)func, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_is_viewable
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1is_1viewable
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_is_viewable");
+#endif
+
+ return (jboolean)gtk_ctree_is_viewable((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_nth
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1nth
+ (JNIEnv *env, jclass that, jint ctree, jint row)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_nth");
+#endif
+
+ return (jint)gtk_ctree_node_nth((GtkCTree*)ctree, row);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_is_hot_spot
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1is_1hot_1spot
+ (JNIEnv *env, jclass that, jint ctree, jint x, jint y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_is_hot_spot");
+#endif
+
+ return (jboolean)gtk_ctree_is_hot_spot((GtkCTree*)ctree, (gint)x, (gint)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_expand
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1expand
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_expand");
+#endif
+
+ gtk_ctree_expand((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_collapse
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1collapse
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_collapse");
+#endif
+
+ gtk_ctree_collapse((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_select
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1select
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_select");
+#endif
+
+ gtk_ctree_select((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_select_recursive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1select_1recursive
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_select_recursive");
+#endif
+
+ gtk_ctree_select_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_unselect_recursive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1unselect_1recursive
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_unselect_recursive");
+#endif
+
+ gtk_ctree_unselect_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_set_node_info
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1set_1node_1info
+ (JNIEnv *env, jclass that, jint ctree, jint node, jbyteArray text, jbyte spacing, jint pixmap_closed, jint mask_closed, jint pixmap_opened, jint mask_opened, jboolean is_leaf, jboolean expanded)
+{
+ jbyte *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_set_node_info");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ gtk_ctree_set_node_info((GtkCTree*)ctree, (GtkCTreeNode*)node, (gchar*)text1, (guint8)spacing, (GdkPixmap*)pixmap_closed, (GdkBitmap*)mask_closed, (GdkPixmap*)pixmap_opened, (GdkBitmap*)mask_opened, (gboolean)is_leaf, (gboolean)expanded);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_get_node_info
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1get_1node_1info
+ (JNIEnv *env, jclass that, jint ctree, jint node, jintArray text, jbyteArray spacing, jintArray pixmap_closed, jintArray mask_closed, jintArray pixmap_opened, jintArray mask_opened, jbooleanArray is_leaf, jbooleanArray expanded)
+{
+ jint rc;
+ jint *text1 = NULL;
+ jbyte *spacing1 = NULL;
+ jint *pixmap_closed1 = NULL;
+ jint *mask_closed1 = NULL;
+ jint *pixmap_opened1 = NULL;
+ jint *mask_opened1 = NULL;
+ jboolean *is_leaf1 = NULL;
+ jboolean *expanded1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_get_node_info");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetIntArrayElements(env, text, NULL);
+ }
+ if (spacing) {
+ spacing1 = (*env)->GetByteArrayElements(env, spacing, NULL);
+ }
+ if (pixmap_closed) {
+ pixmap_closed1 = (*env)->GetIntArrayElements(env, pixmap_closed, NULL);
+ }
+ if (mask_closed) {
+ mask_closed1 = (*env)->GetIntArrayElements(env, mask_closed, NULL);
+ }
+ if (pixmap_opened) {
+ pixmap_opened1 = (*env)->GetIntArrayElements(env, pixmap_opened, NULL);
+ }
+ if (mask_opened) {
+ mask_opened1 = (*env)->GetIntArrayElements(env, mask_opened, NULL);
+ }
+ if (is_leaf) {
+ is_leaf1 = (*env)->GetBooleanArrayElements(env, is_leaf, NULL);
+ }
+ if (expanded) {
+ expanded1 = (*env)->GetBooleanArrayElements(env, expanded, NULL);
+ }
+ rc = (jint)gtk_ctree_get_node_info((GtkCTree*)ctree, (GtkCTreeNode*)node, (gchar**)text1, (guint8*)spacing1, (GdkPixmap**)pixmap_closed1, (GdkBitmap**)mask_closed1, (GdkPixmap**)pixmap_opened1, (GdkBitmap**)mask_opened1, (gboolean*)is_leaf1, (gboolean*)expanded1);
+ if (text) {
+ (*env)->ReleaseIntArrayElements(env, text, text1, 0);
+ }
+ if (spacing) {
+ (*env)->ReleaseByteArrayElements(env, spacing, spacing1, 0);
+ }
+ if (pixmap_closed) {
+ (*env)->ReleaseIntArrayElements(env, pixmap_closed, pixmap_closed1, 0);
+ }
+ if (mask_closed) {
+ (*env)->ReleaseIntArrayElements(env, mask_closed, mask_closed1, 0);
+ }
+ if (pixmap_opened) {
+ (*env)->ReleaseIntArrayElements(env, pixmap_opened, pixmap_opened1, 0);
+ }
+ if (mask_opened) {
+ (*env)->ReleaseIntArrayElements(env, mask_opened, mask_opened1, 0);
+ }
+ if (is_leaf) {
+ (*env)->ReleaseBooleanArrayElements(env, is_leaf, is_leaf1, 0);
+ }
+ if (expanded) {
+ (*env)->ReleaseBooleanArrayElements(env, expanded, expanded1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_get_row_style
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1get_1row_1style
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_get_row_style");
+#endif
+
+ return (jint)gtk_ctree_node_get_row_style((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_set_row_data
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1set_1row_1data
+ (JNIEnv *env, jclass that, jint ctree, jint node, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_set_row_data");
+#endif
+
+ gtk_ctree_node_set_row_data((GtkCTree*)ctree, (GtkCTreeNode*)node, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_get_row_data
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1get_1row_1data
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_get_row_data");
+#endif
+
+ return (jint)gtk_ctree_node_get_row_data((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_moveto
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1moveto
+ (JNIEnv *env, jclass that, jint ctree, jint node, jint column, jfloat row_align, jfloat col_align)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_moveto");
+#endif
+
+ gtk_ctree_node_moveto((GtkCTree*)ctree, (GtkCTreeNode*)node, (gint)column, row_align, col_align);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_ctree_node_is_visible
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1is_1visible
+ (JNIEnv *env, jclass that, jint ctree, jint node)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_ctree_node_is_visible");
+#endif
+
+ return (jint)gtk_ctree_node_is_visible((GtkCTree*)ctree, (GtkCTreeNode*)node);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_dialog_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1dialog_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_dialog_new");
+#endif
+
+ return (jint)gtk_dialog_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_drawing_area_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1drawing_1area_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_drawing_area_new");
+#endif
+
+ return (jint)gtk_drawing_area_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_drawing_area_size
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1drawing_1area_1size
+ (JNIEnv *env, jclass that, jint darea, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_drawing_area_size");
+#endif
+
+ gtk_drawing_area_size((GtkDrawingArea*)darea, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_select_region
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1select_1region
+ (JNIEnv *env, jclass that, jint editable, jint start, jint end)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_select_region");
+#endif
+
+ gtk_editable_select_region((GtkEditable*)editable, (gint)start, (gint)end);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_insert_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1insert_1text
+ (JNIEnv *env, jclass that, jint editable, jbyteArray new_text, jint new_text_length, jintArray position)
+{
+ jbyte *new_text1 = NULL;
+ jint *position1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_insert_text");
+#endif
+
+ if (new_text) {
+ new_text1 = (*env)->GetByteArrayElements(env, new_text, NULL);
+ }
+ if (position) {
+ position1 = (*env)->GetIntArrayElements(env, position, NULL);
+ }
+ gtk_editable_insert_text((GtkEditable*)editable, (gchar*)new_text1, (gint)new_text_length, (gint*)position1);
+ if (new_text) {
+ (*env)->ReleaseByteArrayElements(env, new_text, new_text1, 0);
+ }
+ if (position) {
+ (*env)->ReleaseIntArrayElements(env, position, position1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_delete_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1delete_1text
+ (JNIEnv *env, jclass that, jint editable, jint start_pos, jint end_pos)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_delete_text");
+#endif
+
+ gtk_editable_delete_text((GtkEditable*)editable, (gint)start_pos, (gint)end_pos);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_get_chars
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1get_1chars
+ (JNIEnv *env, jclass that, jint editable, jint start_pos, jint end_pos)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_get_chars");
+#endif
+
+ return (jint)gtk_editable_get_chars((GtkEditable*)editable, (gint)start_pos, (gint)end_pos);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_delete_selection
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1delete_1selection
+ (JNIEnv *env, jclass that, jint editable)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_delete_selection");
+#endif
+
+ gtk_editable_delete_selection((GtkEditable*)editable);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_set_position
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1set_1position
+ (JNIEnv *env, jclass that, jint editable, jint position)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_set_position");
+#endif
+
+ gtk_editable_set_position((GtkEditable*)editable, (gint)position);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_get_position
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1get_1position
+ (JNIEnv *env, jclass that, jint editable)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_get_position");
+#endif
+
+ return (jint)gtk_editable_get_position((GtkEditable*)editable);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_editable_set_editable
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1set_1editable
+ (JNIEnv *env, jclass that, jint editable, jboolean is_editable)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_editable_set_editable");
+#endif
+
+ gtk_editable_set_editable((GtkEditable*)editable, (gboolean)is_editable);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_new");
+#endif
+
+ return (jint)gtk_entry_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_set_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1text
+ (JNIEnv *env, jclass that, jint entry, jbyteArray text)
+{
+ jbyte *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_set_text");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ gtk_entry_set_text((GtkEntry*)entry, (gchar*)text1);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_append_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1append_1text
+ (JNIEnv *env, jclass that, jint entry, jbyteArray text)
+{
+ jbyte *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_append_text");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ gtk_entry_append_text((GtkEntry*)entry, (gchar*)text1);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_get_text
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1get_1text
+ (JNIEnv *env, jclass that, jint entry)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_get_text");
+#endif
+
+ return (jint)gtk_entry_get_text((GtkEntry*)entry);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_set_visibility
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1visibility
+ (JNIEnv *env, jclass that, jint entry, jboolean visible)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_set_visibility");
+#endif
+
+ gtk_entry_set_visibility((GtkEntry*)entry, (gboolean)visible);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_set_editable
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1editable
+ (JNIEnv *env, jclass that, jint entry, jboolean editable)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_set_editable");
+#endif
+
+ gtk_entry_set_editable((GtkEntry*)entry, (gboolean)editable);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_entry_set_max_length
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1max_1length
+ (JNIEnv *env, jclass that, jint entry, jshort max)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_entry_set_max_length");
+#endif
+
+ gtk_entry_set_max_length((GtkEntry*)entry, (guint16)max);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_event_box_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1event_1box_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_event_box_new");
+#endif
+
+ return (jint)gtk_event_box_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_file_selection_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1new
+ (JNIEnv *env, jclass that, jbyteArray title)
+{
+ jint rc;
+ jbyte *title1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_file_selection_new");
+#endif
+
+ if (title) {
+ title1 = (*env)->GetByteArrayElements(env, title, NULL);
+ }
+ rc = (jint)gtk_file_selection_new((gchar*)title1);
+ if (title) {
+ (*env)->ReleaseByteArrayElements(env, title, title1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_file_selection_set_filename
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1set_1filename
+ (JNIEnv *env, jclass that, jint filesel, jbyteArray filename)
+{
+ jbyte *filename1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_file_selection_set_filename");
+#endif
+
+ if (filename) {
+ filename1 = (*env)->GetByteArrayElements(env, filename, NULL);
+ }
+ gtk_file_selection_set_filename((GtkFileSelection*)filesel, (gchar*)filename1);
+ if (filename) {
+ (*env)->ReleaseByteArrayElements(env, filename, filename1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_file_selection_get_filename
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1get_1filename
+ (JNIEnv *env, jclass that, jint filesel)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_file_selection_get_filename");
+#endif
+
+ return (jint)gtk_file_selection_get_filename((GtkFileSelection*)filesel);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_file_selection_complete
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1complete
+ (JNIEnv *env, jclass that, jint filesel, jbyteArray pattern)
+{
+ jbyte *pattern1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_file_selection_complete");
+#endif
+
+ if (pattern) {
+ pattern1 = (*env)->GetByteArrayElements(env, pattern, NULL);
+ }
+ gtk_file_selection_complete((GtkFileSelection*)filesel, (gchar*)pattern1);
+ if (pattern) {
+ (*env)->ReleaseByteArrayElements(env, pattern, pattern1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_fixed_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_fixed_new");
+#endif
+
+ return (jint)gtk_fixed_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_fixed_put
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1put
+ (JNIEnv *env, jclass that, jint fixed, jint widget, jshort x, jshort y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_fixed_put");
+#endif
+
+ gtk_fixed_put((GtkFixed*)fixed, (GtkWidget*)widget, (gint16)x, (gint16)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_fixed_move
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1move
+ (JNIEnv *env, jclass that, jint fixed, jint widget, jshort x, jshort y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_fixed_move");
+#endif
+
+ gtk_fixed_move((GtkFixed*)fixed, (GtkWidget*)widget, (gint16)x, (gint16)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_font_selection_set_font_name
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1set_1font_1name
+ (JNIEnv *env, jclass that, jint fontsel, jbyteArray fontname)
+{
+ jboolean rc;
+ jbyte *fontname1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_font_selection_set_font_name");
+#endif
+
+ if (fontname) {
+ fontname1 = (*env)->GetByteArrayElements(env, fontname, NULL);
+ }
+ rc = (jboolean)gtk_font_selection_set_font_name((GtkFontSelection*)fontsel, (gchar*)fontname1);
+ if (fontname) {
+ (*env)->ReleaseByteArrayElements(env, fontname, fontname1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_font_selection_dialog_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1new
+ (JNIEnv *env, jclass that, jbyteArray title)
+{
+ jint rc;
+ jbyte *title1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_font_selection_dialog_new");
+#endif
+
+ if (title) {
+ title1 = (*env)->GetByteArrayElements(env, title, NULL);
+ }
+ rc = (jint)gtk_font_selection_dialog_new((gchar*)title1);
+ if (title) {
+ (*env)->ReleaseByteArrayElements(env, title, title1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_font_selection_dialog_get_font_name
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1get_1font_1name
+ (JNIEnv *env, jclass that, jint fsd)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_font_selection_dialog_get_font_name");
+#endif
+
+ return (jint)gtk_font_selection_dialog_get_font_name((GtkFontSelectionDialog*)fsd);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_font_selection_dialog_set_font_name
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1set_1font_1name
+ (JNIEnv *env, jclass that, jint fsd, jbyteArray fontname)
+{
+ jboolean rc;
+ jbyte *fontname1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_font_selection_dialog_set_font_name");
+#endif
+
+ if (fontname) {
+ fontname1 = (*env)->GetByteArrayElements(env, fontname, NULL);
+ }
+ rc = (jboolean)gtk_font_selection_dialog_set_font_name((GtkFontSelectionDialog*)fsd, (gchar*)fontname1);
+ if (fontname) {
+ (*env)->ReleaseByteArrayElements(env, fontname, fontname1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_frame_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1new
+ (JNIEnv *env, jclass that, jbyteArray label)
+{
+ jint rc;
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_frame_new");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ rc = (jint)gtk_frame_new((gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_frame_set_label
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1set_1label
+ (JNIEnv *env, jclass that, jint frame, jbyteArray label)
+{
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_frame_set_label");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ gtk_frame_set_label((GtkFrame*)frame, (gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_frame_set_shadow_type
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1set_1shadow_1type
+ (JNIEnv *env, jclass that, jint frame, jint type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_frame_set_shadow_type");
+#endif
+
+ gtk_frame_set_shadow_type((GtkFrame*)frame, (GtkShadowType)type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_hbox_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hbox_1new
+ (JNIEnv *env, jclass that, jboolean homogeneous, jint spacing)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_hbox_new");
+#endif
+
+ return (jint)gtk_hbox_new((gboolean)homogeneous, (gint)spacing);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_hscale_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hscale_1new
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_hscale_new");
+#endif
+
+ return (jint)gtk_hscale_new((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_hscrollbar_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hscrollbar_1new
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_hscrollbar_new");
+#endif
+
+ return (jint)gtk_hscrollbar_new((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_hseparator_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hseparator_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_hseparator_new");
+#endif
+
+ return (jint)gtk_hseparator_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1new
+ (JNIEnv *env, jclass that, jbyteArray str)
+{
+ jint rc;
+ jbyte *str1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_new");
+#endif
+
+ if (str) {
+ str1 = (*env)->GetByteArrayElements(env, str, NULL);
+ }
+ rc = (jint)gtk_label_new((gchar*)str1);
+ if (str) {
+ (*env)->ReleaseByteArrayElements(env, str, str1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_set_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1text
+ (JNIEnv *env, jclass that, jint label, jbyteArray str)
+{
+ jbyte *str1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_set_text");
+#endif
+
+ if (str) {
+ str1 = (*env)->GetByteArrayElements(env, str, NULL);
+ }
+ gtk_label_set_text((GtkLabel*)label, (gchar*)str1);
+ if (str) {
+ (*env)->ReleaseByteArrayElements(env, str, str1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_set_justify
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1justify
+ (JNIEnv *env, jclass that, jint label, jint jtype)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_set_justify");
+#endif
+
+ gtk_label_set_justify((GtkLabel*)label, (GtkJustification)jtype);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_set_pattern
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1pattern
+ (JNIEnv *env, jclass that, jint label, jbyteArray pattern)
+{
+ jbyte *pattern1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_set_pattern");
+#endif
+
+ if (pattern) {
+ pattern1 = (*env)->GetByteArrayElements(env, pattern, NULL);
+ }
+ gtk_label_set_pattern((GtkLabel*)label, (gchar*)pattern1);
+ if (pattern) {
+ (*env)->ReleaseByteArrayElements(env, pattern, pattern1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_set_line_wrap
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1line_1wrap
+ (JNIEnv *env, jclass that, jint label, jboolean wrap)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_set_line_wrap");
+#endif
+
+ gtk_label_set_line_wrap((GtkLabel*)label, (gboolean)wrap);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_label_parse_uline
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1parse_1uline
+ (JNIEnv *env, jclass that, jint label, jbyteArray string)
+{
+ jint rc;
+ jbyte *string1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_label_parse_uline");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ rc = (jint)gtk_label_parse_uline((GtkLabel*)label, (gchar*)string1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_list_clear_items
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1list_1clear_1items
+ (JNIEnv *env, jclass that, jint list, jint start, jint end)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_list_clear_items");
+#endif
+
+ gtk_list_clear_items((GtkList*)list, (gint)start, (gint)end);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_list_select_item
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1list_1select_1item
+ (JNIEnv *env, jclass that, jint list, jint item)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_list_select_item");
+#endif
+
+ gtk_list_select_item((GtkList*)list, (gint)item);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_check_version
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1version
+ (JNIEnv *env, jclass that, jint required_major, jint required_minor, jint required_micro)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_check_version");
+#endif
+
+ return (jint)gtk_check_version(required_major, required_minor, required_micro);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_init_check
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1init_1check
+ (JNIEnv *env, jclass that, jintArray argc, jintArray argv)
+{
+ jboolean rc;
+ jint *argc1 = NULL;
+ jint *argv1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_init_check");
+#endif
+
+ if (argc) {
+ argc1 = (*env)->GetIntArrayElements(env, argc, NULL);
+ }
+ if (argv) {
+ argv1 = (*env)->GetIntArrayElements(env, argv, NULL);
+ }
+ rc = (jboolean)gtk_init_check((int*)argc1, (char***)argv1);
+ if (argc) {
+ (*env)->ReleaseIntArrayElements(env, argc, argc1, 0);
+ }
+ if (argv) {
+ (*env)->ReleaseIntArrayElements(env, argv, argv1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_events_pending
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1events_1pending
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_events_pending");
+#endif
+
+ return (jint)gtk_events_pending();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_main
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_main");
+#endif
+
+ gtk_main();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_main_quit
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main_1quit
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_main_quit");
+#endif
+
+ gtk_main_quit();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_main_iteration
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main_1iteration
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_main_iteration");
+#endif
+
+ return (jint)gtk_main_iteration();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_grab_add
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1add
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_grab_add");
+#endif
+
+ gtk_grab_add((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_grab_get_current
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1get_1current
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_grab_get_current");
+#endif
+
+ return (jint)gtk_grab_get_current();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_grab_remove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1remove
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_grab_remove");
+#endif
+
+ gtk_grab_remove((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_timeout_add
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1timeout_1add
+ (JNIEnv *env, jclass that, jint interval, jint function, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_timeout_add");
+#endif
+
+ return (jint)gtk_timeout_add((guint32)interval, (GtkFunction)function, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_timeout_remove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1timeout_1remove
+ (JNIEnv *env, jclass that, jint timeout_handler_id)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_timeout_remove");
+#endif
+
+ gtk_timeout_remove(timeout_handler_id);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_new");
+#endif
+
+ return (jint)gtk_menu_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_insert
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1insert
+ (JNIEnv *env, jclass that, jint menu, jint child, jint position)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_insert");
+#endif
+
+ gtk_menu_insert((GtkMenu*)menu, (GtkWidget*)child, (gint)position);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_popup
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1popup
+ (JNIEnv *env, jclass that, jint menu, jint parent_menu_shell, jint parent_menu_item, jint func, jint data, jint button, jint activate_time)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_popup");
+#endif
+
+ gtk_menu_popup((GtkMenu*)menu, (GtkWidget*)parent_menu_shell, (GtkWidget*)parent_menu_item, (GtkMenuPositionFunc)func, (gpointer)data, button, (guint32)activate_time);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_popdown
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1popdown
+ (JNIEnv *env, jclass that, jint menu)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_popdown");
+#endif
+
+ gtk_menu_popdown((GtkMenu*)menu);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_bar_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1bar_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_bar_new");
+#endif
+
+ return (jint)gtk_menu_bar_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_bar_insert
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1bar_1insert
+ (JNIEnv *env, jclass that, jint menu_bar, jint child, jint position)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_bar_insert");
+#endif
+
+ gtk_menu_bar_insert((GtkMenuBar*)menu_bar, (GtkWidget*)child, (gint)position);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_item_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_item_new");
+#endif
+
+ return (jint)gtk_menu_item_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_item_new_with_label
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1new_1with_1label
+ (JNIEnv *env, jclass that, jbyteArray label)
+{
+ jint rc;
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_item_new_with_label");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ rc = (jint)gtk_menu_item_new_with_label((gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_item_set_submenu
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1set_1submenu
+ (JNIEnv *env, jclass that, jint menu_item, jint submenu)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_item_set_submenu");
+#endif
+
+ gtk_menu_item_set_submenu((GtkMenuItem*)menu_item, (GtkWidget*)submenu);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_menu_item_remove_submenu
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1remove_1submenu
+ (JNIEnv *env, jclass that, jint menu_item)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_menu_item_remove_submenu");
+#endif
+
+ gtk_menu_item_remove_submenu((GtkMenuItem*)menu_item);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_misc_set_alignment
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1misc_1set_1alignment
+ (JNIEnv *env, jclass that, jint misc, jfloat xalign, jfloat yalign)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_misc_set_alignment");
+#endif
+
+ gtk_misc_set_alignment((GtkMisc*)misc, xalign, yalign);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_new");
+#endif
+
+ return (jint)gtk_notebook_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_append_page
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1append_1page
+ (JNIEnv *env, jclass that, jint notebook, jint child, jint tab_label)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_append_page");
+#endif
+
+ gtk_notebook_append_page((GtkNotebook*)notebook, (GtkWidget*)child, (GtkWidget*)tab_label);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_remove_page
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1remove_1page
+ (JNIEnv *env, jclass that, jint notebook, jint page_num)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_remove_page");
+#endif
+
+ gtk_notebook_remove_page((GtkNotebook*)notebook, (gint)page_num);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_get_current_page
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1get_1current_1page
+ (JNIEnv *env, jclass that, jint notebook)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_get_current_page");
+#endif
+
+ return (jint)gtk_notebook_get_current_page((GtkNotebook*)notebook);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_set_page
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1set_1page
+ (JNIEnv *env, jclass that, jint notebook, jint page_num)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_set_page");
+#endif
+
+ gtk_notebook_set_page((GtkNotebook*)notebook, (gint)page_num);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_notebook_set_show_tabs
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1set_1show_1tabs
+ (JNIEnv *env, jclass that, jint notebook, jboolean show_tabs)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_notebook_set_show_tabs");
+#endif
+
+ gtk_notebook_set_show_tabs((GtkNotebook*)notebook, (gboolean)show_tabs);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_object_ref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1ref
+ (JNIEnv *env, jclass that, jint object)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_ref");
+#endif
+
+ gtk_object_ref((GtkObject*)object);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_object_set_user_data
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1set_1user_1data
+ (JNIEnv *env, jclass that, jint object, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_set_user_data");
+#endif
+
+ gtk_object_set_user_data((GtkObject*)object, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_object_get_user_data
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1get_1user_1data
+ (JNIEnv *env, jclass that, jint object)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_object_get_user_data");
+#endif
+
+ return (jint)gtk_object_get_user_data((GtkObject*)object);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_pixmap_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1pixmap_1new
+ (JNIEnv *env, jclass that, jint pixmap, jint mask)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_pixmap_new");
+#endif
+
+ return (jint)gtk_pixmap_new((GdkPixmap*)pixmap, (GdkBitmap*)mask);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_pixmap_set
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1pixmap_1set
+ (JNIEnv *env, jclass that, jint pixmap, jint val, jint mask)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_pixmap_set");
+#endif
+
+ gtk_pixmap_set((GtkPixmap*)pixmap, (GdkPixmap*)val, (GdkBitmap*)mask);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_progress_configure
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1configure
+ (JNIEnv *env, jclass that, jint progress, jfloat value, jfloat min, jfloat max)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_progress_configure");
+#endif
+
+ gtk_progress_configure((GtkProgress*)progress, value, min, max);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_progress_bar_new_with_adjustment
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_progress_bar_new");
+#endif
+
+ return (jint)gtk_progress_bar_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_progress_bar_set_bar_style
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1set_1bar_1style
+ (JNIEnv *env, jclass that, jint pbar, jint style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_progress_bar_set_bar_style");
+#endif
+
+ gtk_progress_bar_set_bar_style((GtkProgressBar*)pbar, (GtkProgressBarStyle)style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_progress_bar_set_orientation
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1set_1orientation
+ (JNIEnv *env, jclass that, jint pbar, jint orientation)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_progress_bar_set_orientation");
+#endif
+
+ gtk_progress_bar_set_orientation((GtkProgressBar*)pbar, (GtkProgressBarOrientation)orientation);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_radio_button_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1button_1new
+ (JNIEnv *env, jclass that, jint group)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_radio_button_new");
+#endif
+
+ return (jint)gtk_radio_button_new((GSList*)group);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_radio_button_group
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1button_1group
+ (JNIEnv *env, jclass that, jint radio_button)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_radio_button_group");
+#endif
+
+ return (jint)gtk_radio_button_group((GtkRadioButton*)radio_button);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_radio_menu_item_new_with_label
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1menu_1item_1new_1with_1label
+ (JNIEnv *env, jclass that, jint group, jbyteArray label)
+{
+ jint rc;
+ jbyte *label1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_radio_menu_item_new_with_label");
+#endif
+
+ if (label) {
+ label1 = (*env)->GetByteArrayElements(env, label, NULL);
+ }
+ rc = (jint)gtk_radio_menu_item_new_with_label((GSList*)group, (gchar*)label1);
+ if (label) {
+ (*env)->ReleaseByteArrayElements(env, label, label1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_range_get_adjustment
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1range_1get_1adjustment
+ (JNIEnv *env, jclass that, jint range)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_range_get_adjustment");
+#endif
+
+ return (jint)gtk_range_get_adjustment((GtkRange*)range);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scale_set_digits
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1digits
+ (JNIEnv *env, jclass that, jint scale, jint digits)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scale_set_digits");
+#endif
+
+ gtk_scale_set_digits((GtkScale*)scale, (gint)digits);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scale_set_draw_value
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1draw_1value
+ (JNIEnv *env, jclass that, jint scale, jboolean draw_value)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scale_set_draw_value");
+#endif
+
+ gtk_scale_set_draw_value((GtkScale*)scale, (gboolean)draw_value);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scale_set_value_pos
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1value_1pos
+ (JNIEnv *env, jclass that, jint scale, jint pos)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scale_set_value_pos");
+#endif
+
+ gtk_scale_set_value_pos((GtkScale*)scale, (GtkPositionType)pos);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scrolled_window_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1new
+ (JNIEnv *env, jclass that, jint hadjustment, jint vadjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scrolled_window_new");
+#endif
+
+ return (jint)gtk_scrolled_window_new((GtkAdjustment*)hadjustment, (GtkAdjustment*)vadjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scrolled_window_get_hadjustment
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1get_1hadjustment
+ (JNIEnv *env, jclass that, jint scrolled_window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scrolled_window_get_hadjustment");
+#endif
+
+ return (jint)gtk_scrolled_window_get_hadjustment((GtkScrolledWindow*)scrolled_window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scrolled_window_get_vadjustment
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1get_1vadjustment
+ (JNIEnv *env, jclass that, jint scrolled_window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scrolled_window_get_vadjustment");
+#endif
+
+ return (jint)gtk_scrolled_window_get_vadjustment((GtkScrolledWindow*)scrolled_window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_scrolled_window_set_policy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1set_1policy
+ (JNIEnv *env, jclass that, jint scrolled_window, jint hscrollbar_policy, jint vscrollbar_policy)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_scrolled_window_set_policy");
+#endif
+
+ gtk_scrolled_window_set_policy((GtkScrolledWindow*)scrolled_window, (GtkPolicyType)hscrollbar_policy, (GtkPolicyType)vscrollbar_policy);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_selection_owner_set
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1selection_1owner_1set
+ (JNIEnv *env, jclass that, jint widget, jint selection, jint time)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_selection_owner_set");
+#endif
+
+ return (jint)gtk_selection_owner_set((GtkWidget*)widget, (GdkAtom)selection, (guint32)time);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_selection_convert
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1selection_1convert
+ (JNIEnv *env, jclass that, jint widget, jint selection, jint target, jint time)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_selection_convert");
+#endif
+
+ return (jint)gtk_selection_convert((GtkWidget*)widget, (GdkAtom)selection, (GdkAtom)target, (guint32)time);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_signal_emit_stop_by_name
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1emit_1stop_1by_1name
+ (JNIEnv *env, jclass that, jint object, jbyteArray name)
+{
+ jbyte *name1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_emit_stop_by_name");
+#endif
+
+ if (name) {
+ name1 = (*env)->GetByteArrayElements(env, name, NULL);
+ }
+ gtk_signal_emit_stop_by_name((GtkObject*)object, (gchar*)name1);
+ if (name) {
+ (*env)->ReleaseByteArrayElements(env, name, name1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_signal_connect
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1connect
+ (JNIEnv *env, jclass that, jint object, jbyteArray name, jint func, jint func_data)
+{
+ jint rc;
+ jbyte *name1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_connect");
+#endif
+
+ if (name) {
+ name1 = (*env)->GetByteArrayElements(env, name, NULL);
+ }
+ rc = (jint)gtk_signal_connect((GtkObject*)object, (gchar*)name1, (GtkSignalFunc)func, (gpointer)func_data);
+ if (name) {
+ (*env)->ReleaseByteArrayElements(env, name, name1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_signal_connect_after
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1connect_1after
+ (JNIEnv *env, jclass that, jint object, jbyteArray name, jint func, jint func_data)
+{
+ jint rc;
+ jbyte *name1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_connect_after");
+#endif
+
+ if (name) {
+ name1 = (*env)->GetByteArrayElements(env, name, NULL);
+ }
+ rc = (jint)gtk_signal_connect_after((GtkObject*)object, (gchar*)name1, (GtkSignalFunc)func, (gpointer)func_data);
+ if (name) {
+ (*env)->ReleaseByteArrayElements(env, name, name1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_signal_handler_block_by_func
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1block_1by_1func
+ (JNIEnv *env, jclass that, jint object, jint func, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_handler_block_by_func");
+#endif
+
+ gtk_signal_handler_block_by_func((GtkObject*)object, (GtkSignalFunc)func, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_signal_handler_unblock_by_func
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1unblock_1by_1func
+ (JNIEnv *env, jclass that, jint object, jint func, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_signal_handler_unblock_by_func");
+#endif
+
+ gtk_signal_handler_unblock_by_func((GtkObject*)object, (GtkSignalFunc)func, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_style_copy
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1style_1copy
+ (JNIEnv *env, jclass that, jint style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_style_copy");
+#endif
+
+ return (jint)gtk_style_copy((GtkStyle*)style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_style_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1style_1unref
+ (JNIEnv *env, jclass that, jint style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_style_unref");
+#endif
+
+ gtk_style_unref((GtkStyle*)style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_text_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1new
+ (JNIEnv *env, jclass that, jint hadj, jint vadj)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_text_new");
+#endif
+
+ return (jint)gtk_text_new((GtkAdjustment*)hadj, (GtkAdjustment*)vadj);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_text_set_word_wrap
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1set_1word_1wrap
+ (JNIEnv *env, jclass that, jint text, jint word_wrap)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_text_set_word_wrap");
+#endif
+
+ gtk_text_set_word_wrap((GtkText*)text, (gint)word_wrap);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_text_get_length
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1get_1length
+ (JNIEnv *env, jclass that, jint text)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_text_get_length");
+#endif
+
+ return (jint)gtk_text_get_length((GtkText*)text);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toggle_button_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toggle_button_new");
+#endif
+
+ return (jint)gtk_toggle_button_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toggle_button_set_active
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1set_1active
+ (JNIEnv *env, jclass that, jint toggle_button, jboolean is_active)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toggle_button_set_active");
+#endif
+
+ gtk_toggle_button_set_active((GtkToggleButton*)toggle_button, (gboolean)is_active);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toggle_button_get_active
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1get_1active
+ (JNIEnv *env, jclass that, jint toggle_button)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toggle_button_get_active");
+#endif
+
+ return (jboolean)gtk_toggle_button_get_active((GtkToggleButton*)toggle_button);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toolbar_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1new
+ (JNIEnv *env, jclass that, jint orientation, jint style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toolbar_new");
+#endif
+
+ return (jint)gtk_toolbar_new((GtkOrientation)orientation, (GtkToolbarStyle)style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toolbar_insert_element
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1insert_1element
+ (JNIEnv *env, jclass that, jint toolbar, jint type, jint widget, jbyteArray text, jbyteArray tooltip_text, jbyteArray tooltip_private_text, jint icon, jint callback, jint user_data, jint position)
+{
+ jint rc;
+ jbyte *text1 = NULL;
+ jbyte *tooltip_text1 = NULL;
+ jbyte *tooltip_private_text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toolbar_insert_element");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ if (tooltip_text) {
+ tooltip_text1 = (*env)->GetByteArrayElements(env, tooltip_text, NULL);
+ }
+ if (tooltip_private_text) {
+ tooltip_private_text1 = (*env)->GetByteArrayElements(env, tooltip_private_text, NULL);
+ }
+ rc = (jint)gtk_toolbar_insert_element((GtkToolbar*)toolbar, (GtkToolbarChildType)type, (GtkWidget*)widget, (char*)text1, (char*)tooltip_text1, (char*)tooltip_private_text1, (GtkWidget*)icon, (GtkSignalFunc)callback, (gpointer)user_data, (gint)position);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+ if (tooltip_text) {
+ (*env)->ReleaseByteArrayElements(env, tooltip_text, tooltip_text1, 0);
+ }
+ if (tooltip_private_text) {
+ (*env)->ReleaseByteArrayElements(env, tooltip_private_text, tooltip_private_text1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toolbar_insert_widget
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1insert_1widget
+ (JNIEnv *env, jclass that, jint toolbar, jint widget, jbyteArray tooltip_text, jbyteArray tooltip_private_text, jint position)
+{
+ jbyte *tooltip_text1 = NULL;
+ jbyte *tooltip_private_text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toolbar_insert_widget");
+#endif
+
+ if (tooltip_text) {
+ tooltip_text1 = (*env)->GetByteArrayElements(env, tooltip_text, NULL);
+ }
+ if (tooltip_private_text) {
+ tooltip_private_text1 = (*env)->GetByteArrayElements(env, tooltip_private_text, NULL);
+ }
+ gtk_toolbar_insert_widget((GtkToolbar*)toolbar, (GtkWidget*)widget, (char*)tooltip_text1, (char*)tooltip_private_text1, (gint)position);
+ if (tooltip_text) {
+ (*env)->ReleaseByteArrayElements(env, tooltip_text, tooltip_text1, 0);
+ }
+ if (tooltip_private_text) {
+ (*env)->ReleaseByteArrayElements(env, tooltip_private_text, tooltip_private_text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toolbar_set_orientation
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1set_1orientation
+ (JNIEnv *env, jclass that, jint toolbar, jint orientation)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toolbar_set_orientation");
+#endif
+
+ gtk_toolbar_set_orientation((GtkToolbar*)toolbar, (GtkOrientation)orientation);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_toolbar_set_button_relief
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1set_1button_1relief
+ (JNIEnv *env, jclass that, jint toolbar, jint relief)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_toolbar_set_button_relief");
+#endif
+
+ gtk_toolbar_set_button_relief((GtkToolbar*)toolbar, (GtkReliefStyle)relief);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_tooltips_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tooltips_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_tooltips_new");
+#endif
+
+ return (jint)gtk_tooltips_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_tooltips_set_tip
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tooltips_1set_1tip
+ (JNIEnv *env, jclass that, jint tooltips, jint widget, jbyteArray tip_text, jbyteArray tip_private)
+{
+ jbyte *tip_text1 = NULL;
+ jbyte *tip_private1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_tooltips_set_tip");
+#endif
+
+ if (tip_text) {
+ tip_text1 = (*env)->GetByteArrayElements(env, tip_text, NULL);
+ }
+ if (tip_private) {
+ tip_private1 = (*env)->GetByteArrayElements(env, tip_private, NULL);
+ }
+ gtk_tooltips_set_tip((GtkTooltips*)tooltips, (GtkWidget*)widget, (gchar*)tip_text1, (gchar*)tip_private1);
+ if (tip_text) {
+ (*env)->ReleaseByteArrayElements(env, tip_text, tip_text1, 0);
+ }
+ if (tip_private) {
+ (*env)->ReleaseByteArrayElements(env, tip_private, tip_private1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_vbox_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vbox_1new
+ (JNIEnv *env, jclass that, jboolean homogeneous, jint spacing)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_vbox_new");
+#endif
+
+ return (jint)gtk_vbox_new((gboolean)homogeneous, (gint)spacing);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_vscale_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vscale_1new
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_vscale_new");
+#endif
+
+ return (jint)gtk_vscale_new((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_vscrollbar_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vscrollbar_1new
+ (JNIEnv *env, jclass that, jint adjustment)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_vscrollbar_new");
+#endif
+
+ return (jint)gtk_vscrollbar_new((GtkAdjustment*)adjustment);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_vseparator_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vseparator_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_vseparator_new");
+#endif
+
+ return (jint)gtk_vseparator_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_destroy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1destroy
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_destroy");
+#endif
+
+ gtk_widget_destroy((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_show
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1show
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_show");
+#endif
+
+ gtk_widget_show((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_show_now
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1show_1now
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_show_now");
+#endif
+
+ gtk_widget_show_now((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_hide
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1hide
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_hide");
+#endif
+
+ gtk_widget_hide((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_realize
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1realize
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_realize");
+#endif
+
+ gtk_widget_realize((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_queue_draw
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1queue_1draw
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_queue_draw");
+#endif
+
+ gtk_widget_queue_draw((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_size_request
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1size_1request
+ (JNIEnv *env, jclass that, jint widget, jobject requisition)
+{
+ DECL_GLOB(pGlob)
+ GtkRequisition requisition_struct, *requisition1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_size_request");
+#endif
+
+ if (requisition) {
+ requisition1 = &requisition_struct;
+ cacheGtkRequisitionFids(env, requisition, &PGLOB(GtkRequisitionFc));
+ getGtkRequisitionFields(env, requisition, requisition1, &PGLOB(GtkRequisitionFc));
+ }
+ gtk_widget_size_request((GtkWidget*)widget, (GtkRequisition*)requisition1);
+ if (requisition) {
+ setGtkRequisitionFields(env, requisition, requisition1, &PGLOB(GtkRequisitionFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_size_allocate
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1size_1allocate
+ (JNIEnv *env, jclass that, jint widget, jobject allocation)
+{
+ DECL_GLOB(pGlob)
+ GtkAllocation allocation_struct, *allocation1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_size_allocate");
+#endif
+
+ if (allocation) {
+ allocation1 = &allocation_struct;
+ cacheGtkAllocationFids(env, allocation, &PGLOB(GtkAllocationFc));
+ getGtkAllocationFields(env, allocation, allocation1, &PGLOB(GtkAllocationFc));
+ }
+ gtk_widget_size_allocate((GtkWidget*)widget, (GtkAllocation*)allocation1);
+ if (allocation) {
+ setGtkAllocationFields(env, allocation, allocation1, &PGLOB(GtkAllocationFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_add_accelerator
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1add_1accelerator
+ (JNIEnv *env, jclass that, jint widget, jbyteArray accel_signal, jint accel_group, jint accel_key, jint accel_mods, jint accel_flags)
+{
+ jbyte *accel_signal1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_add_accelerator");
+#endif
+
+ if (accel_signal) {
+ accel_signal1 = (*env)->GetByteArrayElements(env, accel_signal, NULL);
+ }
+ gtk_widget_add_accelerator((GtkWidget*)widget, (gchar*)accel_signal1, (GtkAccelGroup*)accel_group, accel_key, accel_mods, (GtkAccelFlags)accel_flags);
+ if (accel_signal) {
+ (*env)->ReleaseByteArrayElements(env, accel_signal, accel_signal1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_remove_accelerator
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1remove_1accelerator
+ (JNIEnv *env, jclass that, jint widget, jint accel_group, jint accel_key, jint accel_mods)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_remove_accelerator");
+#endif
+
+ gtk_widget_remove_accelerator((GtkWidget*)widget, (GtkAccelGroup*)accel_group, accel_key, accel_mods);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_event
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1event
+ (JNIEnv *env, jclass that, jint widget, jint event)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_event");
+#endif
+
+ return (jint)gtk_widget_event((GtkWidget*)widget, (GdkEvent*)event);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_reparent
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1reparent
+ (JNIEnv *env, jclass that, jint widget, jint new_parent)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_reparent");
+#endif
+
+ gtk_widget_reparent((GtkWidget*)widget, (GtkWidget*)new_parent);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_grab_focus
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1grab_1focus
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_grab_focus");
+#endif
+
+ gtk_widget_grab_focus((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_state
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1state
+ (JNIEnv *env, jclass that, jint widget, jint state)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_state");
+#endif
+
+ gtk_widget_set_state((GtkWidget*)widget, (GtkStateType)state);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_sensitive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1sensitive
+ (JNIEnv *env, jclass that, jint widget, jboolean sensitive)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_sensitive");
+#endif
+
+ gtk_widget_set_sensitive((GtkWidget*)widget, (gboolean)sensitive);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_parent
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1parent
+ (JNIEnv *env, jclass that, jint widget, jint parent)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_parent");
+#endif
+
+ gtk_widget_set_parent((GtkWidget*)widget, (GtkWidget*)parent);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_uposition
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1uposition
+ (JNIEnv *env, jclass that, jint widget, jint x, jint y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_uposition");
+#endif
+
+ gtk_widget_set_uposition((GtkWidget*)widget, (gint)x, (gint)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_usize
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1usize
+ (JNIEnv *env, jclass that, jint widget, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_usize");
+#endif
+
+ gtk_widget_set_usize((GtkWidget*)widget, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_add_events
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1add_1events
+ (JNIEnv *env, jclass that, jint widget, jint events)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_add_events");
+#endif
+
+ gtk_widget_add_events((GtkWidget*)widget, (gint)events);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_set_style
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1style
+ (JNIEnv *env, jclass that, jint widget, jint style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_set_style");
+#endif
+
+ gtk_widget_set_style((GtkWidget*)widget, (GtkStyle*)style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_ensure_style
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1ensure_1style
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_ensure_style");
+#endif
+
+ gtk_widget_ensure_style((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_get_style
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1get_1style
+ (JNIEnv *env, jclass that, jint widget)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_get_style");
+#endif
+
+ return (jint)gtk_widget_get_style((GtkWidget*)widget);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_widget_get_default_style
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1get_1default_1style
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_widget_get_default_style");
+#endif
+
+ return (jint)gtk_widget_get_default_style();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_window_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1window_1new
+ (JNIEnv *env, jclass that, jint type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_window_new");
+#endif
+
+ return (jint)gtk_window_new((GtkWindowType)type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_window_set_title
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1window_1set_1title
+ (JNIEnv *env, jclass that, jint window, jbyteArray title)
+{
+ jbyte *title1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_window_set_title");
+#endif
+
+ if (title) {
+ title1 = (*env)->GetByteArrayElements(env, title, NULL);
+ }
+ gtk_window_set_title((GtkWindow*)window, (gchar*)title1);
+ if (title) {
+ (*env)->ReleaseByteArrayElements(env, title, title1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_window_set_policy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1window_1set_1policy
+ (JNIEnv *env, jclass that, jint window, jint allow_shrink, jint allow_grow, jint auto_shrink)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_window_set_policy");
+#endif
+
+ gtk_window_set_policy((GtkWindow*)window, (gint)allow_shrink, (gint)allow_grow, (gint)auto_shrink);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_window_add_accel_group
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1window_1add_1accel_1group
+ (JNIEnv *env, jclass that, jint window, jint accel_group)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_window_add_accel_group");
+#endif
+
+ gtk_window_add_accel_group((GtkWindow*)window, (GtkAccelGroup*)accel_group);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_event_get
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1event_1get
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_event_get");
+#endif
+
+ return (jint)gdk_event_get();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_event_get_graphics_expose
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1event_1get_1graphics_1expose
+ (JNIEnv *env, jclass that, jint window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_event_get_graphics_expose");
+#endif
+
+ return (jint)gdk_event_get_graphics_expose((GdkWindow*)window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_event_free
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1event_1free
+ (JNIEnv *env, jclass that, jint event)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_event_free");
+#endif
+
+ gdk_event_free((GdkEvent*)event);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_time_get
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1time_1get
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_time_get");
+#endif
+
+ return (jint)gdk_time_get();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_screen_width
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1screen_1width
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_screen_width");
+#endif
+
+ return (jint)gdk_screen_width();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_screen_height
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1screen_1height
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_screen_height");
+#endif
+
+ return (jint)gdk_screen_height();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_screen_width_mm
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1screen_1width_1mm
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_screen_width_mm");
+#endif
+
+ return (jint)gdk_screen_width_mm();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_flush
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1flush
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_flush");
+#endif
+
+ gdk_flush();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_beep
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1beep
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_beep");
+#endif
+
+ gdk_beep();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_visual_get_system
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1visual_1get_1system
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_visual_get_system");
+#endif
+
+ return (jint)gdk_visual_get_system();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_at_pointer
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1at_1pointer
+ (JNIEnv *env, jclass that, jintArray win_x, jintArray win_y)
+{
+ jint rc;
+ jint *win_x1 = NULL;
+ jint *win_y1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_at_pointer");
+#endif
+
+ if (win_x) {
+ win_x1 = (*env)->GetIntArrayElements(env, win_x, NULL);
+ }
+ if (win_y) {
+ win_y1 = (*env)->GetIntArrayElements(env, win_y, NULL);
+ }
+ rc = (jint)gdk_window_at_pointer((gint*)win_x1, (gint*)win_y1);
+ if (win_x) {
+ (*env)->ReleaseIntArrayElements(env, win_x, win_x1, 0);
+ }
+ if (win_y) {
+ (*env)->ReleaseIntArrayElements(env, win_y, win_y1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_clear_area
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1clear_1area
+ (JNIEnv *env, jclass that, jint window, jint x, jint y, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_clear_area");
+#endif
+
+ gdk_window_clear_area((GdkWindow*)window, (gint)x, (gint)y, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_clear_area_e
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1clear_1area_1e
+ (JNIEnv *env, jclass that, jint window, jint x, jint y, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_clear_area_e");
+#endif
+
+ gdk_window_clear_area_e((GdkWindow*)window, (gint)x, (gint)y, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_copy_area
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1copy_1area
+ (JNIEnv *env, jclass that, jint window, jint gc, jint x, jint y, jint source_window, jint source_x, jint source_y, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_copy_area");
+#endif
+
+ gdk_window_copy_area((GdkWindow*)window, (GdkGC*)gc, (gint)x, (gint)y, (GdkWindow*)source_window, (gint)source_x, (gint)source_y, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_raise
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1raise
+ (JNIEnv *env, jclass that, jint window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_raise");
+#endif
+
+ gdk_window_raise((GdkWindow*)window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_lower
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1lower
+ (JNIEnv *env, jclass that, jint window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_lower");
+#endif
+
+ gdk_window_lower((GdkWindow*)window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_set_user_data
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1set_1user_1data
+ (JNIEnv *env, jclass that, jint window, jint user_data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_set_user_data");
+#endif
+
+ gdk_window_set_user_data((GdkWindow*)window, (gpointer)user_data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_set_cursor
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1set_1cursor
+ (JNIEnv *env, jclass that, jint window, jint cursor)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_set_cursor");
+#endif
+
+ gdk_window_set_cursor((GdkWindow*)window, (GdkCursor*)cursor);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_get_user_data
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1get_1user_1data
+ (JNIEnv *env, jclass that, jint window, jintArray data)
+{
+ jint *data1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_get_user_data");
+#endif
+
+ if (data) {
+ data1 = (*env)->GetIntArrayElements(env, data, NULL);
+ }
+ gdk_window_get_user_data((GdkWindow*)window, (gpointer*)data1);
+ if (data) {
+ (*env)->ReleaseIntArrayElements(env, data, data1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_get_geometry
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1get_1geometry
+ (JNIEnv *env, jclass that, jint window, jintArray x, jintArray y, jintArray width, jintArray height, jintArray depth)
+{
+ jint *x1 = NULL;
+ jint *y1 = NULL;
+ jint *width1 = NULL;
+ jint *height1 = NULL;
+ jint *depth1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_get_geometry");
+#endif
+
+ if (x) {
+ x1 = (*env)->GetIntArrayElements(env, x, NULL);
+ }
+ if (y) {
+ y1 = (*env)->GetIntArrayElements(env, y, NULL);
+ }
+ if (width) {
+ width1 = (*env)->GetIntArrayElements(env, width, NULL);
+ }
+ if (height) {
+ height1 = (*env)->GetIntArrayElements(env, height, NULL);
+ }
+ if (depth) {
+ depth1 = (*env)->GetIntArrayElements(env, depth, NULL);
+ }
+ gdk_window_get_geometry((GdkWindow*)window, (gint*)x1, (gint*)y1, (gint*)width1, (gint*)height1, (gint*)depth1);
+ if (x) {
+ (*env)->ReleaseIntArrayElements(env, x, x1, 0);
+ }
+ if (y) {
+ (*env)->ReleaseIntArrayElements(env, y, y1, 0);
+ }
+ if (width) {
+ (*env)->ReleaseIntArrayElements(env, width, width1, 0);
+ }
+ if (height) {
+ (*env)->ReleaseIntArrayElements(env, height, height1, 0);
+ }
+ if (depth) {
+ (*env)->ReleaseIntArrayElements(env, depth, depth1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_get_origin
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1get_1origin
+ (JNIEnv *env, jclass that, jint window, jintArray x, jintArray y)
+{
+ jint rc;
+ jint *x1 = NULL;
+ jint *y1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_get_origin");
+#endif
+
+ if (x) {
+ x1 = (*env)->GetIntArrayElements(env, x, NULL);
+ }
+ if (y) {
+ y1 = (*env)->GetIntArrayElements(env, y, NULL);
+ }
+ rc = (jint)gdk_window_get_origin((GdkWindow*)window, (gint*)x1, (gint*)y1);
+ if (x) {
+ (*env)->ReleaseIntArrayElements(env, x, x1, 0);
+ }
+ if (y) {
+ (*env)->ReleaseIntArrayElements(env, y, y1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_get_pointer
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1get_1pointer
+ (JNIEnv *env, jclass that, jint window, jintArray x, jintArray y, jint mask)
+{
+ jint rc;
+ jint *x1 = NULL;
+ jint *y1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_get_pointer");
+#endif
+
+ if (x) {
+ x1 = (*env)->GetIntArrayElements(env, x, NULL);
+ }
+ if (y) {
+ y1 = (*env)->GetIntArrayElements(env, y, NULL);
+ }
+ rc = (jint)gdk_window_get_pointer((GdkWindow*)window, (gint*)x1, (gint*)y1, (GdkModifierType*)mask);
+ if (x) {
+ (*env)->ReleaseIntArrayElements(env, x, x1, 0);
+ }
+ if (y) {
+ (*env)->ReleaseIntArrayElements(env, y, y1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_set_icon
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1set_1icon
+ (JNIEnv *env, jclass that, jint window, jint icon_window, jint pixmap, jint mask)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_set_icon");
+#endif
+
+ gdk_window_set_icon((GdkWindow*)window, (GdkWindow*)icon_window, (GdkPixmap*)pixmap, (GdkBitmap*)mask);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_window_set_decorations
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1window_1set_1decorations
+ (JNIEnv *env, jclass that, jint window, jint decorations)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_window_set_decorations");
+#endif
+
+ gdk_window_set_decorations((GdkWindow*)window, (GdkWMDecoration)decorations);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_cursor_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1cursor_1new
+ (JNIEnv *env, jclass that, jint cursor_type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_cursor_new");
+#endif
+
+ return (jint)gdk_cursor_new((GdkCursorType)cursor_type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_cursor_new_from_pixmap
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1cursor_1new_1from_1pixmap
+ (JNIEnv *env, jclass that, jint source, jint mask, jobject fg, jobject bg, jint x, jint y)
+{
+ DECL_GLOB(pGlob)
+ jint rc;
+ GdkColor fg_struct, *fg1 = NULL;
+ GdkColor bg_struct, *bg1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_cursor_new_from_pixmap");
+#endif
+
+ if (fg) {
+ fg1 = &fg_struct;
+ cacheGdkColorFids(env, fg, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, fg, fg1, &PGLOB(GdkColorFc));
+ }
+ if (bg) {
+ bg1 = &bg_struct;
+ cacheGdkColorFids(env, bg, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, bg, bg1, &PGLOB(GdkColorFc));
+ }
+ rc = (jint)gdk_cursor_new_from_pixmap((GdkPixmap*)source, (GdkPixmap*)mask, (GdkColor*)fg1, (GdkColor*)bg1, (gint)x, (gint)y);
+ if (fg) {
+ setGdkColorFields(env, fg, fg1, &PGLOB(GdkColorFc));
+ }
+ if (bg) {
+ setGdkColorFields(env, bg, bg1, &PGLOB(GdkColorFc));
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_cursor_destroy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1cursor_1destroy
+ (JNIEnv *env, jclass that, jint cursor)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_cursor_destroy");
+#endif
+
+ gdk_cursor_destroy((GdkCursor*)cursor);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1new
+ (JNIEnv *env, jclass that, jint window)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_new");
+#endif
+
+ return (jint)gdk_gc_new((GdkWindow*)window);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1unref
+ (JNIEnv *env, jclass that, jint gc)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_unref");
+#endif
+
+ gdk_gc_unref((GdkGC*)gc);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_destroy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1destroy
+ (JNIEnv *env, jclass that, jint gc)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_destroy");
+#endif
+
+ gdk_gc_destroy((GdkGC*)gc);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_get_values
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1get_1values
+ (JNIEnv *env, jclass that, jint gc, jobject values)
+{
+ DECL_GLOB(pGlob)
+ GdkGCValues values_struct, *values1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_get_values");
+#endif
+
+ if (values) {
+ values1 = &values_struct;
+ cacheGdkGCValuesFids(env, values, &PGLOB(GdkGCValuesFc));
+ getGdkGCValuesFields(env, values, values1, &PGLOB(GdkGCValuesFc));
+ }
+ gdk_gc_get_values((GdkGC*)gc, (GdkGCValues*)values1);
+ if (values) {
+ setGdkGCValuesFields(env, values, values1, &PGLOB(GdkGCValuesFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_foreground
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1foreground
+ (JNIEnv *env, jclass that, jint gc, jobject color)
+{
+ DECL_GLOB(pGlob)
+ GdkColor color_struct, *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_foreground");
+#endif
+
+ if (color) {
+ color1 = &color_struct;
+ cacheGdkColorFids(env, color, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ gdk_gc_set_foreground((GdkGC*)gc, (GdkColor*)color1);
+ if (color) {
+ setGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_background
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1background
+ (JNIEnv *env, jclass that, jint gc, jobject color)
+{
+ DECL_GLOB(pGlob)
+ GdkColor color_struct, *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_background");
+#endif
+
+ if (color) {
+ color1 = &color_struct;
+ cacheGdkColorFids(env, color, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ gdk_gc_set_background((GdkGC*)gc, (GdkColor*)color1);
+ if (color) {
+ setGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_font
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1font
+ (JNIEnv *env, jclass that, jint gc, jint font)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_font");
+#endif
+
+ gdk_gc_set_font((GdkGC*)gc, (GdkFont*)font);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_function
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1function
+ (JNIEnv *env, jclass that, jint gc, jint function)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_function");
+#endif
+
+ gdk_gc_set_function((GdkGC*)gc, (GdkFunction)function);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_fill
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1fill
+ (JNIEnv *env, jclass that, jint gc, jint fill)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_fill");
+#endif
+
+ gdk_gc_set_fill((GdkGC*)gc, (GdkFill)fill);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_stipple
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1stipple
+ (JNIEnv *env, jclass that, jint gc, jint stipple)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_stipple");
+#endif
+
+ gdk_gc_set_stipple((GdkGC*)gc, (GdkPixmap*)stipple);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_clip_mask
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1clip_1mask
+ (JNIEnv *env, jclass that, jint gc, jint mask)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_clip_mask");
+#endif
+
+ gdk_gc_set_clip_mask((GdkGC*)gc, (GdkBitmap*)mask);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_clip_rectangle
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1clip_1rectangle
+ (JNIEnv *env, jclass that, jint gc, jobject rectangle)
+{
+ DECL_GLOB(pGlob)
+ GdkRectangle rectangle_struct, *rectangle1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_clip_rectangle");
+#endif
+
+ if (rectangle) {
+ rectangle1 = &rectangle_struct;
+ cacheGdkRectangleFids(env, rectangle, &PGLOB(GdkRectangleFc));
+ getGdkRectangleFields(env, rectangle, rectangle1, &PGLOB(GdkRectangleFc));
+ }
+ gdk_gc_set_clip_rectangle((GdkGC*)gc, (GdkRectangle*)rectangle1);
+ if (rectangle) {
+ setGdkRectangleFields(env, rectangle, rectangle1, &PGLOB(GdkRectangleFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_clip_region
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1clip_1region
+ (JNIEnv *env, jclass that, jint gc, jint region)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_clip_region");
+#endif
+
+ gdk_gc_set_clip_region((GdkGC*)gc, (GdkRegion*)region);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_subwindow
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1subwindow
+ (JNIEnv *env, jclass that, jint gc, jint mode)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_subwindow");
+#endif
+
+ gdk_gc_set_subwindow((GdkGC*)gc, (GdkSubwindowMode)mode);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_exposures
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1exposures
+ (JNIEnv *env, jclass that, jint gc, jboolean exposures)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_exposures");
+#endif
+
+ gdk_gc_set_exposures((GdkGC*)gc, (gboolean)exposures);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_line_attributes
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1line_1attributes
+ (JNIEnv *env, jclass that, jint gc, jint line_width, jint line_style, jint cap_style, jint join_style)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_line_attributes");
+#endif
+
+ gdk_gc_set_line_attributes((GdkGC*)gc, (gint)line_width, (GdkLineStyle)line_style, (GdkCapStyle)cap_style, (GdkJoinStyle)join_style);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_gc_set_dashes
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1gc_1set_1dashes
+ (JNIEnv *env, jclass that, jint gc, jint dash_offset, jbyteArray dash_list, jint n)
+{
+ jbyte *dash_list1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_gc_set_dashes");
+#endif
+
+ if (dash_list) {
+ dash_list1 = (*env)->GetByteArrayElements(env, dash_list, NULL);
+ }
+ gdk_gc_set_dashes((GdkGC*)gc, (gint)dash_offset, (gint8*)dash_list1, (gint)n);
+ if (dash_list) {
+ (*env)->ReleaseByteArrayElements(env, dash_list, dash_list1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_pixmap_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1pixmap_1new
+ (JNIEnv *env, jclass that, jint window, jint width, jint height, jint depth)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_pixmap_new");
+#endif
+
+ return (jint)gdk_pixmap_new((GdkWindow*)window, (gint)width, (gint)height, (gint)depth);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_bitmap_create_from_data
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1bitmap_1create_1from_1data
+ (JNIEnv *env, jclass that, jint window, jbyteArray data, jint width, jint height)
+{
+ jint rc;
+ jbyte *data1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_bitmap_create_from_data");
+#endif
+
+ if (data) {
+ data1 = (*env)->GetByteArrayElements(env, data, NULL);
+ }
+ rc = (jint)gdk_bitmap_create_from_data((GdkWindow*)window, (gchar*)data1, (gint)width, (gint)height);
+ if (data) {
+ (*env)->ReleaseByteArrayElements(env, data, data1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_pixmap_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1pixmap_1unref
+ (JNIEnv *env, jclass that, jint pixmap)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_pixmap_unref");
+#endif
+
+ gdk_pixmap_unref((GdkPixmap*)pixmap);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_bitmap_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1bitmap_1unref
+ (JNIEnv *env, jclass that, jint pixmap)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_bitmap_unref");
+#endif
+
+ gdk_bitmap_unref((GdkBitmap*)pixmap);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_image_get
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1image_1get
+ (JNIEnv *env, jclass that, jint window, jint x, jint y, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_image_get");
+#endif
+
+ return (jint)gdk_image_get((GdkWindow*)window, (gint)x, (gint)y, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_image_get_pixel
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1image_1get_1pixel
+ (JNIEnv *env, jclass that, jint image, jint x, jint y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_image_get_pixel");
+#endif
+
+ return (jint)gdk_image_get_pixel((GdkImage*)image, (gint)x, (gint)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_colormap_get_system
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1colormap_1get_1system
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_colormap_get_system");
+#endif
+
+ return (jint)gdk_colormap_get_system();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_color_free
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1color_1free
+ (JNIEnv *env, jclass that, jobject color)
+{
+ DECL_GLOB(pGlob)
+ GdkColor color_struct, *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_color_free");
+#endif
+
+ if (color) {
+ color1 = &color_struct;
+ cacheGdkColorFids(env, color, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ gdk_color_free((GdkColor*)color1);
+ if (color) {
+ setGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_colors_free
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1colors_1free
+ (JNIEnv *env, jclass that, jint colormap, jintArray pixels, jint npixels, jint planes)
+{
+ jint *pixels1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_colors_free");
+#endif
+
+ if (pixels) {
+ pixels1 = (*env)->GetIntArrayElements(env, pixels, NULL);
+ }
+ gdk_colors_free((GdkColormap*)colormap, (gulong*)pixels1, (gint)npixels, (gulong)planes);
+ if (pixels) {
+ (*env)->ReleaseIntArrayElements(env, pixels, pixels1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_color_white
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1color_1white
+ (JNIEnv *env, jclass that, jint colormap, jobject color)
+{
+ DECL_GLOB(pGlob)
+ jboolean rc;
+ GdkColor color_struct, *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_color_white");
+#endif
+
+ if (color) {
+ color1 = &color_struct;
+ cacheGdkColorFids(env, color, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ rc = (jboolean)gdk_color_white((GdkColormap*)colormap, (GdkColor*)color1);
+ if (color) {
+ setGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_color_alloc
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1color_1alloc
+ (JNIEnv *env, jclass that, jint colormap, jobject color)
+{
+ DECL_GLOB(pGlob)
+ jboolean rc;
+ GdkColor color_struct, *color1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_color_alloc");
+#endif
+
+ if (color) {
+ color1 = &color_struct;
+ cacheGdkColorFids(env, color, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ rc = (jboolean)gdk_color_alloc((GdkColormap*)colormap, (GdkColor*)color1);
+ if (color) {
+ setGdkColorFields(env, color, color1, &PGLOB(GdkColorFc));
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_font_load
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1font_1load
+ (JNIEnv *env, jclass that, jbyteArray font_name)
+{
+ jint rc;
+ jbyte *font_name1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_font_load");
+#endif
+
+ if (font_name) {
+ font_name1 = (*env)->GetByteArrayElements(env, font_name, NULL);
+ }
+ rc = (jint)gdk_font_load((gchar*)font_name1);
+ if (font_name) {
+ (*env)->ReleaseByteArrayElements(env, font_name, font_name1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_font_ref
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1font_1ref
+ (JNIEnv *env, jclass that, jint font)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_font_ref");
+#endif
+
+ return (jint)gdk_font_ref((GdkFont*)font);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_font_unref
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1font_1unref
+ (JNIEnv *env, jclass that, jint font)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_font_unref");
+#endif
+
+ gdk_font_unref((GdkFont*)font);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_font_equal
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1font_1equal
+ (JNIEnv *env, jclass that, jint fonta, jint fontb)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_font_equal");
+#endif
+
+ return (jboolean)gdk_font_equal((GdkFont*)fonta, (GdkFont*)fontb);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_string_width
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1string_1width
+ (JNIEnv *env, jclass that, jint font, jbyteArray string)
+{
+ jint rc;
+ jbyte *string1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_string_width");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ rc = (jint)gdk_string_width((GdkFont*)font, (gchar*)string1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_char_width
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1char_1width
+ (JNIEnv *env, jclass that, jint font, jbyte character)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_char_width");
+#endif
+
+ return (jint)gdk_char_width((GdkFont*)font, (gchar)character);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_string_height
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1string_1height
+ (JNIEnv *env, jclass that, jint font, jbyteArray string)
+{
+ jint rc;
+ jbyte *string1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_string_height");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ rc = (jint)gdk_string_height((GdkFont*)font, (gchar*)string1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_string_extents
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1string_1extents
+ (JNIEnv *env, jclass that, jint font, jbyteArray string, jintArray lbearing, jintArray rbearing, jintArray width, jintArray ascent, jintArray descent)
+{
+ jbyte *string1 = NULL;
+ jint *lbearing1 = NULL;
+ jint *rbearing1 = NULL;
+ jint *width1 = NULL;
+ jint *ascent1 = NULL;
+ jint *descent1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_string_extents");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ if (lbearing) {
+ lbearing1 = (*env)->GetIntArrayElements(env, lbearing, NULL);
+ }
+ if (rbearing) {
+ rbearing1 = (*env)->GetIntArrayElements(env, rbearing, NULL);
+ }
+ if (width) {
+ width1 = (*env)->GetIntArrayElements(env, width, NULL);
+ }
+ if (ascent) {
+ ascent1 = (*env)->GetIntArrayElements(env, ascent, NULL);
+ }
+ if (descent) {
+ descent1 = (*env)->GetIntArrayElements(env, descent, NULL);
+ }
+ gdk_string_extents((GdkFont*)font, (gchar*)string1, (gint*)lbearing1, (gint*)rbearing1, (gint*)width1, (gint*)ascent1, (gint*)descent1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+ if (lbearing) {
+ (*env)->ReleaseIntArrayElements(env, lbearing, lbearing1, 0);
+ }
+ if (rbearing) {
+ (*env)->ReleaseIntArrayElements(env, rbearing, rbearing1, 0);
+ }
+ if (width) {
+ (*env)->ReleaseIntArrayElements(env, width, width1, 0);
+ }
+ if (ascent) {
+ (*env)->ReleaseIntArrayElements(env, ascent, ascent1, 0);
+ }
+ if (descent) {
+ (*env)->ReleaseIntArrayElements(env, descent, descent1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_line
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1line
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jint x1, jint y1, jint x2, jint y2)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_line");
+#endif
+
+ gdk_draw_line((GdkDrawable*)drawable, (GdkGC*)gc, (gint)x1, (gint)y1, (gint)x2, (gint)y2);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_rectangle
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1rectangle
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jint filled, jint x, jint y, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_rectangle");
+#endif
+
+ gdk_draw_rectangle((GdkDrawable*)drawable, (GdkGC*)gc, (gint)filled, (gint)x, (gint)y, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_arc
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1arc
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jint filled, jint x, jint y, jint width, jint height, jint angle1, jint angle2)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_arc");
+#endif
+
+ gdk_draw_arc((GdkDrawable*)drawable, (GdkGC*)gc, (gint)filled, (gint)x, (gint)y, (gint)width, (gint)height, (gint)angle1, (gint)angle2);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_polygon
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1polygon
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jint filled, jshortArray points, jint npoints)
+{
+ jshort *points1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_polygon");
+#endif
+
+ if (points) {
+ points1 = (*env)->GetShortArrayElements(env, points, NULL);
+ }
+ gdk_draw_polygon((GdkDrawable*)drawable, (GdkGC*)gc, (gint)filled, (GdkPoint*)points1, (gint)npoints);
+ if (points) {
+ (*env)->ReleaseShortArrayElements(env, points, points1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_string
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1string
+ (JNIEnv *env, jclass that, jint drawable, jint font, jint gc, jint x, jint y, jbyteArray string)
+{
+ jbyte *string1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_string");
+#endif
+
+ if (string) {
+ string1 = (*env)->GetByteArrayElements(env, string, NULL);
+ }
+ gdk_draw_string((GdkDrawable*)drawable, (GdkFont*)font, (GdkGC*)gc, (gint)x, (gint)y, (gchar*)string1);
+ if (string) {
+ (*env)->ReleaseByteArrayElements(env, string, string1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_pixmap
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1pixmap
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jint src, jint xsrc, jint ysrc, jint xdest, jint ydest, jint width, jint height)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_pixmap");
+#endif
+
+ gdk_draw_pixmap((GdkDrawable*)drawable, (GdkGC*)gc, (GdkDrawable*)src, (gint)xsrc, (gint)ysrc, (gint)xdest, (gint)ydest, (gint)width, (gint)height);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_draw_lines
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1draw_1lines
+ (JNIEnv *env, jclass that, jint drawable, jint gc, jshortArray points, jint npoints)
+{
+ jshort *points1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_draw_lines");
+#endif
+
+ if (points) {
+ points1 = (*env)->GetShortArrayElements(env, points, NULL);
+ }
+ gdk_draw_lines((GdkDrawable*)drawable, (GdkGC*)gc, (GdkPoint*)points1, (gint)npoints);
+ if (points) {
+ (*env)->ReleaseShortArrayElements(env, points, points1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_atom_intern
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1atom_1intern
+ (JNIEnv *env, jclass that, jbyteArray atom_name, jint only_if_exists)
+{
+ jint rc;
+ jbyte *atom_name1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_atom_intern");
+#endif
+
+ if (atom_name) {
+ atom_name1 = (*env)->GetByteArrayElements(env, atom_name, NULL);
+ }
+ rc = (jint)gdk_atom_intern((gchar*)atom_name1, (gint)only_if_exists);
+ if (atom_name) {
+ (*env)->ReleaseByteArrayElements(env, atom_name, atom_name1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1new
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_new");
+#endif
+
+ return (jint)gdk_region_new();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_destroy
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1destroy
+ (JNIEnv *env, jclass that, jint region)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_destroy");
+#endif
+
+ gdk_region_destroy((GdkRegion*)region);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_get_clipbox
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1get_1clipbox
+ (JNIEnv *env, jclass that, jint region, jobject rectangle)
+{
+ DECL_GLOB(pGlob)
+ GdkRectangle rectangle_struct, *rectangle1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_get_clipbox");
+#endif
+
+ if (rectangle) {
+ rectangle1 = &rectangle_struct;
+ cacheGdkRectangleFids(env, rectangle, &PGLOB(GdkRectangleFc));
+ getGdkRectangleFields(env, rectangle, rectangle1, &PGLOB(GdkRectangleFc));
+ }
+ gdk_region_get_clipbox((GdkRegion*)region, (GdkRectangle*)rectangle1);
+ if (rectangle) {
+ setGdkRectangleFields(env, rectangle, rectangle1, &PGLOB(GdkRectangleFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_empty
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1empty
+ (JNIEnv *env, jclass that, jint region)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_empty");
+#endif
+
+ return (jboolean)gdk_region_empty((GdkRegion*)region);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_equal
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1equal
+ (JNIEnv *env, jclass that, jint region1, jint region2)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_equal");
+#endif
+
+ return (jboolean)gdk_region_equal((GdkRegion*)region1, (GdkRegion*)region2);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_point_in
+ * Signature:
+ */
+JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1point_1in
+ (JNIEnv *env, jclass that, jint region, jint x, jint y)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_point_in");
+#endif
+
+ return (jboolean)gdk_region_point_in((GdkRegion*)region, (int)x, (int)y);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_rect_in
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1rect_1in
+ (JNIEnv *env, jclass that, jint region, jobject rect)
+{
+ DECL_GLOB(pGlob)
+ jint rc;
+ GdkRectangle rect_struct, *rect1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_rect_in");
+#endif
+
+ if (rect) {
+ rect1 = &rect_struct;
+ cacheGdkRectangleFids(env, rect, &PGLOB(GdkRectangleFc));
+ getGdkRectangleFields(env, rect, rect1, &PGLOB(GdkRectangleFc));
+ }
+ rc = (jint)gdk_region_rect_in((GdkRegion*)region, (GdkRectangle*)rect1);
+ if (rect) {
+ setGdkRectangleFields(env, rect, rect1, &PGLOB(GdkRectangleFc));
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_region_union_with_rect
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1region_1union_1with_1rect
+ (JNIEnv *env, jclass that, jint region, jobject rect)
+{
+ DECL_GLOB(pGlob)
+ jint rc;
+ GdkRectangle rect_struct, *rect1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_region_union_with_rect");
+#endif
+
+ if (rect) {
+ rect1 = &rect_struct;
+ cacheGdkRectangleFids(env, rect, &PGLOB(GdkRectangleFc));
+ getGdkRectangleFields(env, rect, rect1, &PGLOB(GdkRectangleFc));
+ }
+ rc = (jint)gdk_region_union_with_rect((GdkRegion*)region, (GdkRectangle*)rect1);
+ if (rect) {
+ setGdkRectangleFields(env, rect, rect1, &PGLOB(GdkRectangleFc));
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_regions_union
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1regions_1union
+ (JNIEnv *env, jclass that, jint source1, jint source2)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_regions_union");
+#endif
+
+ return (jint)gdk_regions_union((GdkRegion*)source1, (GdkRegion*)source2);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gdk_regions_subtract
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1regions_1subtract
+ (JNIEnv *env, jclass that, jint source1, jint source2)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gdk_regions_subtract");
+#endif
+
+ return (jint)gdk_regions_subtract((GdkRegion*)source1, (GdkRegion*)source2);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_list_free
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1list_1free
+ (JNIEnv *env, jclass that, jint list)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_list_free");
+#endif
+
+ g_list_free((GList*)list);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_list_append
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1list_1append
+ (JNIEnv *env, jclass that, jint list, jint data)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_list_append");
+#endif
+
+ return (jint)g_list_append((GList*)list, (gpointer)data);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_list_nth
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1list_1nth
+ (JNIEnv *env, jclass that, jint list, jint n)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_list_nth");
+#endif
+
+ return (jint)g_list_nth((GList*)list, n);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_list_length
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1list_1length
+ (JNIEnv *env, jclass that, jint list)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_list_length");
+#endif
+
+ return (jint)g_list_length((GList*)list);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_list_nth_data
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1list_1nth_1data
+ (JNIEnv *env, jclass that, jint list, jint n)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_list_nth_data");
+#endif
+
+ return (jint)g_list_nth_data((GList*)list, n);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_slist_nth
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1slist_1nth
+ (JNIEnv *env, jclass that, jint list, jint n)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_slist_nth");
+#endif
+
+ return (jint)g_slist_nth((GSList*)list, n);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_slist_length
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1slist_1length
+ (JNIEnv *env, jclass that, jint list)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_slist_length");
+#endif
+
+ return (jint)g_slist_length((GSList*)list);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_slist_nth_data
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1slist_1nth_1data
+ (JNIEnv *env, jclass that, jint list, jint n)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_slist_nth_data");
+#endif
+
+ return (jint)g_slist_nth_data((GSList*)list, n);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_malloc
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1malloc
+ (JNIEnv *env, jclass that, jint size)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_malloc");
+#endif
+
+ return (jint)g_malloc((gulong)size);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_free
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1free
+ (JNIEnv *env, jclass that, jint mem)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_free");
+#endif
+
+ g_free((gpointer)mem);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_strdup
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1strdup
+ (JNIEnv *env, jclass that, jbyteArray str)
+{
+ jint rc;
+ jbyte *str1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_strdup");
+#endif
+
+ if (str) {
+ str1 = (*env)->GetByteArrayElements(env, str, NULL);
+ }
+ rc = (jint)g_strdup((gchar*)str1);
+ if (str) {
+ (*env)->ReleaseByteArrayElements(env, str, str1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: g_get_home_dir
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1get_1home_1dir
+ (JNIEnv *env, jclass that)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "g_get_home_dir");
+#endif
+
+ return (jint)g_get_home_dir();
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_new
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1new
+ (JNIEnv *env, jclass that, jint columns)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_new");
+#endif
+
+ return (jint)gtk_clist_new((gint)columns);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_shadow_type
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1shadow_1type
+ (JNIEnv *env, jclass that, jint clist, jint type)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_shadow_type");
+#endif
+
+ gtk_clist_set_shadow_type((GtkCList*)clist, (GtkShadowType)type);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_selection_mode
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1selection_1mode
+ (JNIEnv *env, jclass that, jint clist, jint mode)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_selection_mode");
+#endif
+
+ gtk_clist_set_selection_mode((GtkCList*)clist, (GtkSelectionMode)mode);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_freeze
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1freeze
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_freeze");
+#endif
+
+ gtk_clist_freeze((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_thaw
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1thaw
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_thaw");
+#endif
+
+ gtk_clist_thaw((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_column_titles_show
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1column_1titles_1show
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_column_titles_show");
+#endif
+
+ gtk_clist_column_titles_show((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_column_titles_hide
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1column_1titles_1hide
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_column_titles_hide");
+#endif
+
+ gtk_clist_column_titles_hide((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_column_title_passive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1column_1title_1passive
+ (JNIEnv *env, jclass that, jint clist, jint column)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_column_title_passive");
+#endif
+
+ gtk_clist_column_title_passive((GtkCList*)clist, (gint)column);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_column_titles_passive
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1column_1titles_1passive
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_column_titles_passive");
+#endif
+
+ gtk_clist_column_titles_passive((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_column_title
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1column_1title
+ (JNIEnv *env, jclass that, jint clist, jint column, jbyteArray title)
+{
+ jbyte *title1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_column_title");
+#endif
+
+ if (title) {
+ title1 = (*env)->GetByteArrayElements(env, title, NULL);
+ }
+ gtk_clist_set_column_title((GtkCList*)clist, (gint)column, (gchar*)title1);
+ if (title) {
+ (*env)->ReleaseByteArrayElements(env, title, title1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_column_justification
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1column_1justification
+ (JNIEnv *env, jclass that, jint clist, jint column, jint justification)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_column_justification");
+#endif
+
+ gtk_clist_set_column_justification((GtkCList*)clist, (gint)column, (GtkJustification)justification);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_column_visibility
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1column_1visibility
+ (JNIEnv *env, jclass that, jint clist, jint column, jboolean visible)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_column_visibility");
+#endif
+
+ gtk_clist_set_column_visibility((GtkCList*)clist, (gint)column, (gboolean)visible);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_column_resizeable
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1column_1resizeable
+ (JNIEnv *env, jclass that, jint clist, jint column, jboolean resizeable)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_column_resizeable");
+#endif
+
+ gtk_clist_set_column_resizeable((GtkCList*)clist, (gint)column, (gboolean)resizeable);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_column_width
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1column_1width
+ (JNIEnv *env, jclass that, jint clist, jint column, jint width)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_column_width");
+#endif
+
+ gtk_clist_set_column_width((GtkCList*)clist, (gint)column, (gint)width);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_moveto
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1moveto
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column, jfloat row_align, jfloat col_align)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_moveto");
+#endif
+
+ gtk_clist_moveto((GtkCList*)clist, (gint)row, (gint)column, row_align, col_align);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_text
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1text
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column, jbyteArray text)
+{
+ jbyte *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_text");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ gtk_clist_set_text((GtkCList*)clist, (gint)row, (gint)column, (gchar*)text1);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_get_text
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1get_1text
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column, jintArray text)
+{
+ jint rc;
+ jint *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_get_text");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetIntArrayElements(env, text, NULL);
+ }
+ rc = (jint)gtk_clist_get_text((GtkCList*)clist, (gint)row, (gint)column, (gchar**)text1);
+ if (text) {
+ (*env)->ReleaseIntArrayElements(env, text, text1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_pixmap
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1pixmap
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column, jint pixmap, jint mask)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_pixmap");
+#endif
+
+ gtk_clist_set_pixmap((GtkCList*)clist, (gint)row, (gint)column, (GdkPixmap*)pixmap, (GdkBitmap*)mask);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_set_pixtext
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1set_1pixtext
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column, jbyteArray text, jbyte spacing, jint pixmap, jint mask)
+{
+ jbyte *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_set_pixtext");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetByteArrayElements(env, text, NULL);
+ }
+ gtk_clist_set_pixtext((GtkCList*)clist, (gint)row, (gint)column, (gchar*)text1, (guint8)spacing, (GdkPixmap*)pixmap, (GdkBitmap*)mask);
+ if (text) {
+ (*env)->ReleaseByteArrayElements(env, text, text1, 0);
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_append
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1append
+ (JNIEnv *env, jclass that, jint clist, jintArray text)
+{
+ jint rc;
+ jint *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_append");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetIntArrayElements(env, text, NULL);
+ }
+ rc = (jint)gtk_clist_append((GtkCList*)clist, (gchar**)text1);
+ if (text) {
+ (*env)->ReleaseIntArrayElements(env, text, text1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_insert
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1insert
+ (JNIEnv *env, jclass that, jint clist, jint row, jintArray text)
+{
+ jint rc;
+ jint *text1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_insert");
+#endif
+
+ if (text) {
+ text1 = (*env)->GetIntArrayElements(env, text, NULL);
+ }
+ rc = (jint)gtk_clist_insert((GtkCList*)clist, (gint)row, (gchar**)text1);
+ if (text) {
+ (*env)->ReleaseIntArrayElements(env, text, text1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_remove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1remove
+ (JNIEnv *env, jclass that, jint clist, jint row)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_remove");
+#endif
+
+ gtk_clist_remove((GtkCList*)clist, (gint)row);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_select_row
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1select_1row
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_select_row");
+#endif
+
+ gtk_clist_select_row((GtkCList*)clist, (gint)row, (gint)column);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_unselect_row
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1unselect_1row
+ (JNIEnv *env, jclass that, jint clist, jint row, jint column)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_unselect_row");
+#endif
+
+ gtk_clist_unselect_row((GtkCList*)clist, (gint)row, (gint)column);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_clear
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1clear
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_clear");
+#endif
+
+ gtk_clist_clear((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_get_selection_info
+ * Signature:
+ */
+JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1get_1selection_1info
+ (JNIEnv *env, jclass that, jint clist, jint x, jint y, jintArray row, jintArray column)
+{
+ jint rc;
+ jint *row1 = NULL;
+ jint *column1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_get_selection_info");
+#endif
+
+ if (row) {
+ row1 = (*env)->GetIntArrayElements(env, row, NULL);
+ }
+ if (column) {
+ column1 = (*env)->GetIntArrayElements(env, column, NULL);
+ }
+ rc = (jint)gtk_clist_get_selection_info((GtkCList*)clist, (gint)x, (gint)y, (gint*)row1, (gint*)column1);
+ if (row) {
+ (*env)->ReleaseIntArrayElements(env, row, row1, 0);
+ }
+ if (column) {
+ (*env)->ReleaseIntArrayElements(env, column, column1, 0);
+ }
+ return rc;
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_select_all
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1select_1all
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_select_all");
+#endif
+
+ gtk_clist_select_all((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_clist_unselect_all
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1unselect_1all
+ (JNIEnv *env, jclass that, jint clist)
+{
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "gtk_clist_unselect_all");
+#endif
+
+ gtk_clist_unselect_all((GtkCList*)clist);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkColor_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkColor src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkColorFids(env, src, &PGLOB(GdkColorFc));
+ getGdkColorFields(env, src, src1, &PGLOB(GdkColorFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkColor_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkColor_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkColor dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkColor_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkColorFids(env, dest, &PGLOB(GdkColorFc));
+ setGdkColorFields(env, dest, dest1, &PGLOB(GdkColorFc));
+ }
+}
+
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkStyleClass_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkStyleClass dest_struct, *dest1 = NULL;
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkStyleClassFids(env, dest, &PGLOB(GtkStyleClassFc));
+ setGtkStyleClassFields(env, dest, dest1, &PGLOB(GtkStyleClassFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkEventKey_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkEventKeyFids(env, src, &PGLOB(GdkEventKeyFc));
+ getGdkEventKeyFields(env, src, src1, &PGLOB(GdkEventKeyFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkEventKey_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventKey_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkEventKey_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkEventKeyFids(env, dest, &PGLOB(GdkEventKeyFc));
+ setGdkEventKeyFields(env, dest, dest1, &PGLOB(GdkEventKeyFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkEventButton_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkEventButtonFids(env, src, &PGLOB(GdkEventButtonFc));
+ getGdkEventButtonFields(env, src, src1, &PGLOB(GdkEventButtonFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkEventButton_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventButton_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkEventButton_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkEventButtonFids(env, dest, &PGLOB(GdkEventButtonFc));
+ setGdkEventButtonFields(env, dest, dest1, &PGLOB(GdkEventButtonFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkEventMotion_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkEventMotionFids(env, src, &PGLOB(GdkEventMotionFc));
+ getGdkEventMotionFields(env, src, src1, &PGLOB(GdkEventMotionFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkEventMotion_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkEventMotion_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkEventMotionFids(env, dest, &PGLOB(GdkEventMotionFc));
+ setGdkEventMotionFields(env, dest, dest1, &PGLOB(GdkEventMotionFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkEventExpose_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkEventExposeFids(env, src, &PGLOB(GdkEventExposeFc));
+ getGdkEventExposeFields(env, src, src1, &PGLOB(GdkEventExposeFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkEventExpose_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkEventExpose_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkEvent dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkEventExpose_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkEventExposeFids(env, dest, &PGLOB(GdkEventExposeFc));
+ setGdkEventExposeFields(env, dest, dest1, &PGLOB(GdkEventExposeFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkFont_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkFont src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkFontFids(env, src, &PGLOB(GdkFontFc));
+ getGdkFontFields(env, src, src1, &PGLOB(GdkFontFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkFont_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkFont_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkFont dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkFont_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkFontFids(env, dest, &PGLOB(GdkFontFc));
+ setGdkFontFields(env, dest, dest1, &PGLOB(GdkFontFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkGCValues_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkGCValues src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkGCValuesFids(env, src, &PGLOB(GdkGCValuesFc));
+ getGdkGCValuesFields(env, src, src1, &PGLOB(GdkGCValuesFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkGCValues_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkGCValues_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkGCValues dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkGCValues_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkGCValuesFids(env, dest, &PGLOB(GdkGCValuesFc));
+ setGdkGCValuesFields(env, dest, dest1, &PGLOB(GdkGCValuesFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkImage_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkImage src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkImageFids(env, src, &PGLOB(GdkImageFc));
+ getGdkImageFields(env, src, src1, &PGLOB(GdkImageFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkImage_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkImage_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkImage dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkImage_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkImageFids(env, dest, &PGLOB(GdkImageFc));
+ setGdkImageFields(env, dest, dest1, &PGLOB(GdkImageFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkPoint_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkPoint src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkPointFids(env, src, &PGLOB(GdkPointFc));
+ getGdkPointFields(env, src, src1, &PGLOB(GdkPointFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkPoint_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkPoint_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkPoint dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkPoint_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkPointFids(env, dest, &PGLOB(GdkPointFc));
+ setGdkPointFields(env, dest, dest1, &PGLOB(GdkPointFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkRectangle_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkRectangle src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkRectangleFids(env, src, &PGLOB(GdkRectangleFc));
+ getGdkRectangleFields(env, src, src1, &PGLOB(GdkRectangleFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkRectangle_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkRectangle_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkRectangle dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkRectangle_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkRectangleFids(env, dest, &PGLOB(GdkRectangleFc));
+ setGdkRectangleFields(env, dest, dest1, &PGLOB(GdkRectangleFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GdkVisual_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkVisual src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGdkVisualFids(env, src, &PGLOB(GdkVisualFc));
+ getGdkVisualFields(env, src, src1, &PGLOB(GdkVisualFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GdkVisual_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GdkVisual_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GdkVisual dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GdkVisual_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGdkVisualFids(env, dest, &PGLOB(GdkVisualFc));
+ setGdkVisualFields(env, dest, dest1, &PGLOB(GdkVisualFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkAllocation_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkAllocation src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkAllocationFids(env, src, &PGLOB(GtkAllocationFc));
+ getGtkAllocationFields(env, src, src1, &PGLOB(GtkAllocationFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkAllocation_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkAllocation_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkAllocation dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkAllocation_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkAllocationFids(env, dest, &PGLOB(GtkAllocationFc));
+ setGtkAllocationFields(env, dest, dest1, &PGLOB(GtkAllocationFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkArg_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkArg src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkArgFids(env, src, &PGLOB(GtkArgFc));
+ getGtkArgFields(env, src, src1, &PGLOB(GtkArgFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkArg_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkArg_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkArg dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkArg_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkArgFids(env, dest, &PGLOB(GtkArgFc));
+ setGtkArgFields(env, dest, dest1, &PGLOB(GtkArgFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkBin_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkBin src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkBinFids(env, src, &PGLOB(GtkBinFc));
+ getGtkBinFields(env, src, src1, &PGLOB(GtkBinFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkBin_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkBin_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkBin dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkBin_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkBinFids(env, dest, &PGLOB(GtkBinFc));
+ setGtkBinFields(env, dest, dest1, &PGLOB(GtkBinFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkCList_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCList src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkCListFids(env, src, &PGLOB(GtkCListFc));
+ getGtkCListFields(env, src, src1, &PGLOB(GtkCListFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkCList_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkCList_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCList dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkCList_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkCListFids(env, dest, &PGLOB(GtkCListFc));
+ setGtkCListFields(env, dest, dest1, &PGLOB(GtkCListFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkMenu_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkMenu src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkMenuFids(env, src, &PGLOB(GtkMenuFc));
+ getGtkMenuFields(env, src, src1, &PGLOB(GtkMenuFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkMenu_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkMenu_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkMenu dest_struct={0}, *dest1 = NULL;
+
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkMenu_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkMenuFids(env, dest, &PGLOB(GtkMenuFc));
+ setGtkMenuFields(env, dest, dest1, &PGLOB(GtkMenuFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkCTree_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCTree src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkCTreeFids(env, src, &PGLOB(GtkCTreeFc));
+ getGtkCTreeFields(env, src, src1, &PGLOB(GtkCTreeFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkCTree_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkCTree_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCTree dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkCTree_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkCTreeFids(env, dest, &PGLOB(GtkCTreeFc));
+ setGtkCTreeFields(env, dest, dest1, &PGLOB(GtkCTreeFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkColorSelectionDialog_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkColorSelectionDialog src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkColorSelectionDialogFids(env, src, &PGLOB(GtkColorSelectionDialogFc));
+ getGtkColorSelectionDialogFields(env, src, src1, &PGLOB(GtkColorSelectionDialogFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkColorSelectionDialog_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkColorSelectionDialog_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkColorSelectionDialog dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkColorSelectionDialog_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkColorSelectionDialogFids(env, dest, &PGLOB(GtkColorSelectionDialogFc));
+ setGtkColorSelectionDialogFields(env, dest, dest1, &PGLOB(GtkColorSelectionDialogFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkCombo_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCombo src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkComboFids(env, src, &PGLOB(GtkComboFc));
+ getGtkComboFields(env, src, src1, &PGLOB(GtkComboFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkCombo_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkCombo_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCombo dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkCombo_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkComboFids(env, dest, &PGLOB(GtkComboFc));
+ setGtkComboFields(env, dest, dest1, &PGLOB(GtkComboFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkContainer_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkContainer src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkContainerFids(env, src, &PGLOB(GtkContainerFc));
+ getGtkContainerFields(env, src, src1, &PGLOB(GtkContainerFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkContainer_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkContainer_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkContainer dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkContainer_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkContainerFids(env, dest, &PGLOB(GtkContainerFc));
+ setGtkContainerFields(env, dest, dest1, &PGLOB(GtkContainerFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkData_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkData src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkDataFids(env, src, &PGLOB(GtkDataFc));
+ getGtkDataFields(env, src, src1, &PGLOB(GtkDataFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkData_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkData_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkData dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkData_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkDataFids(env, dest, &PGLOB(GtkDataFc));
+ setGtkDataFields(env, dest, dest1, &PGLOB(GtkDataFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkEditable_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkEditable src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkEditableFids(env, src, &PGLOB(GtkEditableFc));
+ getGtkEditableFields(env, src, src1, &PGLOB(GtkEditableFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkEditable_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkEditable_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkEditable dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkEditable_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkEditableFids(env, dest, &PGLOB(GtkEditableFc));
+ setGtkEditableFields(env, dest, dest1, &PGLOB(GtkEditableFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkText_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkText src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkTextFids(env, src, &PGLOB(GtkTextFc));
+ getGtkTextFields(env, src, src1, &PGLOB(GtkTextFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkText_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkText_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkText dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkText_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkTextFids(env, dest, &PGLOB(GtkTextFc));
+ setGtkTextFields(env, dest, dest1, &PGLOB(GtkTextFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: gtk_text_inquiry
+ * Signature:
+ * Not implemented yet;
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_text_inquiry__Lorg_eclipse_swt_internal_gtk_GtkText_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkFileSelection_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFileSelection src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkFileSelectionFids(env, src, &PGLOB(GtkFileSelectionFc));
+ getGtkFileSelectionFields(env, src, src1, &PGLOB(GtkFileSelectionFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkFileSelection_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkFileSelection_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFileSelection dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkFileSelection_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkFileSelectionFids(env, dest, &PGLOB(GtkFileSelectionFc));
+ setGtkFileSelectionFields(env, dest, dest1, &PGLOB(GtkFileSelectionFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkFontSelectionDialog_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFontSelectionDialog src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkFontSelectionDialogFids(env, src, &PGLOB(GtkFontSelectionDialogFc));
+ getGtkFontSelectionDialogFields(env, src, src1, &PGLOB(GtkFontSelectionDialogFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkFontSelectionDialog_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkFontSelectionDialog_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFontSelectionDialog dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkFontSelectionDialog_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkFontSelectionDialogFids(env, dest, &PGLOB(GtkFontSelectionDialogFc));
+ setGtkFontSelectionDialogFields(env, dest, dest1, &PGLOB(GtkFontSelectionDialogFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkObject_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkObject src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkObjectFids(env, src, &PGLOB(GtkObjectFc));
+ getGtkObjectFields(env, src, src1, &PGLOB(GtkObjectFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkObject_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkObject_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkObject dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkObject_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkObjectFids(env, dest, &PGLOB(GtkObjectFc));
+ setGtkObjectFields(env, dest, dest1, &PGLOB(GtkObjectFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkProgress_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkProgress src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkProgressFids(env, src, &PGLOB(GtkProgressFc));
+ getGtkProgressFields(env, src, src1, &PGLOB(GtkProgressFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkProgress_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkProgress_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkProgress dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkProgress_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkProgressFids(env, dest, &PGLOB(GtkProgressFc));
+ setGtkProgressFields(env, dest, dest1, &PGLOB(GtkProgressFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkProgressBar_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkProgressBar src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkProgressBarFids(env, src, &PGLOB(GtkProgressBarFc));
+ getGtkProgressBarFields(env, src, src1, &PGLOB(GtkProgressBarFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkProgressBar_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkProgressBar_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkProgressBar dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkProgressBar_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkProgressBarFids(env, dest, &PGLOB(GtkProgressBarFc));
+ setGtkProgressBarFields(env, dest, dest1, &PGLOB(GtkProgressBarFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkRequisition_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkRequisition src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkRequisitionFids(env, src, &PGLOB(GtkRequisitionFc));
+ getGtkRequisitionFields(env, src, src1, &PGLOB(GtkRequisitionFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkRequisition_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkRequisition_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkRequisition dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkRequisition_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkRequisitionFids(env, dest, &PGLOB(GtkRequisitionFc));
+ setGtkRequisitionFields(env, dest, dest1, &PGLOB(GtkRequisitionFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkStyle_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkStyle src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkStyleFids(env, src, &PGLOB(GtkStyleFc));
+ getGtkStyleFields(env, src, src1, &PGLOB(GtkStyleFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkStyle_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkStyle_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkStyle dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkStyle_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkStyleFids(env, dest, &PGLOB(GtkStyleFc));
+ setGtkStyleFields(env, dest, dest1, &PGLOB(GtkStyleFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkWidget_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkWidget src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkWidgetFids(env, src, &PGLOB(GtkWidgetFc));
+ getGtkWidgetFields(env, src, src1, &PGLOB(GtkWidgetFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkWidget_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkWidget_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkWidget dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkWidget_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkWidgetFids(env, dest, &PGLOB(GtkWidgetFc));
+ setGtkWidgetFields(env, dest, dest1, &PGLOB(GtkWidgetFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkFrame_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFrame src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkFrameFids(env, src, &PGLOB(GtkFrameFc));
+ getGtkFrameFields(env, src, src1, &PGLOB(GtkFrameFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkFrame_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkFrame_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkFrame dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkFrame_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkFrameFids(env, dest, &PGLOB(GtkFrameFc));
+ setGtkFrameFields(env, dest, dest1, &PGLOB(GtkFrameFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkWindow_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkWindow src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkWindowFids(env, src, &PGLOB(GtkWindowFc));
+ getGtkWindowFields(env, src, src1, &PGLOB(GtkWindowFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkWindow_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkWindow_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkWindow dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkWindow_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkWindowFids(env, dest, &PGLOB(GtkWindowFc));
+ setGtkWindowFields(env, dest, dest1, &PGLOB(GtkWindowFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkCheckMenuItem_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCheckMenuItem src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkCheckMenuItemFids(env, src, &PGLOB(GtkCheckMenuItemFc));
+ getGtkCheckMenuItemFields(env, src, src1, &PGLOB(GtkCheckMenuItemFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkCheckMenuItem_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkCheckMenuItem_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkCheckMenuItem dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkCheckMenuItem_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkCheckMenuItemFids(env, dest, &PGLOB(GtkCheckMenuItemFc));
+ setGtkCheckMenuItemFields(env, dest, dest1, &PGLOB(GtkCheckMenuItemFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkAdjustment_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkAdjustment src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkAdjustmentFids(env, src, &PGLOB(GtkAdjustmentFc));
+ getGtkAdjustmentFields(env, src, src1, &PGLOB(GtkAdjustmentFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkAdjustment_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkAdjustment_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkAdjustment dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkAdjustment_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkAdjustmentFids(env, dest, &PGLOB(GtkAdjustmentFc));
+ setGtkAdjustmentFields(env, dest, dest1, &PGLOB(GtkAdjustmentFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkBox_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkBox src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkBoxFids(env, src, &PGLOB(GtkBoxFc));
+ getGtkBoxFields(env, src, src1, &PGLOB(GtkBoxFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkBox_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkBox_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkBox dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkBox_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkBoxFids(env, dest, &PGLOB(GtkBoxFc));
+ setGtkBoxFields(env, dest, dest1, &PGLOB(GtkBoxFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkHBox_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkHBox src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkHBoxFids(env, src, &PGLOB(GtkHBoxFc));
+ getGtkHBoxFields(env, src, src1, &PGLOB(GtkHBoxFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkHBox_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkHBox_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkHBox dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkHBox_2II\n");
+#endif
+
+ memmove((void*)&dest_struct, (void*)src, count);
+ if (dest) {
+ dest1 = &dest_struct;
+ cacheGtkHBoxFids(env, dest, &PGLOB(GtkHBoxFc));
+ setGtkHBoxFields(env, dest, dest1, &PGLOB(GtkHBoxFc));
+ }
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__ILorg_eclipse_swt_internal_gtk_GtkMenuItem_2I
+ (JNIEnv *env, jclass that, jint dest, jobject src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkMenuItem src_struct={0}, *src1 = NULL;
+ if (src) {
+ src1 = &src_struct;
+ cacheGtkMenuItemFids(env, src, &PGLOB(GtkMenuItemFc));
+ getGtkMenuItemFields(env, src, src1, &PGLOB(GtkMenuItemFc));
+ }
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__ILorg_eclipse_swt_internal_gtk_GtkMenuItem_2I\n");
+#endif
+
+ memmove((void*)dest, (void*)src1, count);
+}
+
+/*
+ * Class: org_eclipse_swt_internal_gtk_OS
+ * Method: memmove
+ * Signature:
+ */
+JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_memmove__Lorg_eclipse_swt_internal_gtk_GtkMenuItem_2II
+ (JNIEnv *env, jclass that, jobject dest, jint src, jint count)
+{
+ DECL_GLOB(pGlob)
+ GtkMenuItem dest_struct={0}, *dest1 = NULL;
+#ifdef DEBUG_CALL_PRINTS
+ fprintf(stderr, "memmove__Lorg_eclipse_swt_internal_gtk_GtkMenuItem_2II\n");
+#endif
+
+ memmove((voi