| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(gtkWindowGetLocationOnScreen): Added declaration
for native function.
(getLocationOnScreen): Changed to handle 2 different cases.
If the component is a window, gtkWindowGetLocationOnScreen is
called; otherwise, gtkWidetGetLocationOnScreen.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h:
Added signature for new function Java_gnu_java_awt_peer_
gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
Implemented.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(getLocationOnScreen): The insets should be taken into account
when returning the location of an object on the screen.
|
|
|
|
|
| |
color to BLACK when getForeground() returns null.
(initComponentGraphicsUnlocked): Likewise.
|
|
|
|
|
|
| |
(GdkGraphics2D(GdkGraphics2D,int, int, int,int)): New constructor.
(create(int,int,int,int)): Use new constructor.
(copyArea): Implement through create() and gdkDrawDrawable().
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
(create): Changed classname for the heavyweight testclass to match
the new classes introduced by my popup patch earlier this day.
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkChoicePeer.java (postChoiceItemEvent):
Don't call select on the AWT Choice component.
* java/awt/Choice.java (processItemEvent): Set the selected index
without calling into the peers.
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getFont): Fall back to peer.getGraphics().getFont() if no font
is found.
(getGraphics): Set font here. This avoids a loop in the above
fallback.
* gnu/java/awt/peer/gtk/GdkGraphics.java
(GdkGraphics): Don't initialize font here. This would cause a
loop in the above fallback.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (clearRect): Check bg
against null to avoid NPE.
|
|
|
|
| |
to see if library should be loaded.
|
|
|
|
|
| |
method.
(GdkFontMetrics): Use initFont() in super() call.
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkTextLayout.java
(getOutline): Implement as native
* include/gnu_java_awt_peer_gtk_GdkTextLayout.h
Add declaration
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c
(getOutline): Implement.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes Bug #24077
* gnu/java/awt/peer/gtk/GdkFontMetrics.java
(GdkFontMetrics): Added a check for the font
being null. Fixed a NPE.
* gnu/java/awt/peer/gtk/GdkGraphics.java
(GdkGraphics): Added check if the font is null.
If it is, the font should be set to the default.
(setFont): If font parameter is null, this.font should not
be changed.
* javax/swing/JPopupMenu.java:
Fixed API documentation to say 'JDialog' rather than
'JWindow'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
(create): If the dialog is a toolTip or a
PopupMenu, its type should be set to:
GDK_WINDOW_TYPE_HINT_MENU, so the parent
window does not lose focus.
* javax/swing/JTree.java
(setModel): Should update the UI everytime the
model is changed.
* javax/swing/plaf/basic/BasicTreeUI.java
(installUI): Should not set the root to be visible.
(paintControlIcons): changed to use getVisibleRect.
* javax/swing/plaf/metal/MetalTreeUI.java
(installUI): Should not set the root to be visible.
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JComponent.java
(paint): Check if clip == null and if so set it to the component's
bounds.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java
(getClipBounds): Added null check so that null is returned when
clip == null, instead of throwing an NPE while accessing
null.getBounds2D().
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics2D.java
(setFont): If font == null, simply return. Avoids a NPE.
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (fail_g2d): New method.
(GdkGraphics2D(GdkGraphics2D)): Call fail_g2d if Graphics2D not
specified.
(GdkGraphics2D(int,height)): Likewise.
(GdkGraphics2D(GtkComponentPeer)): Likewise.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (static): Reindent
second error message.
|
|
|
|
|
|
|
|
|
| |
PR awt/23692
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (static): Only call
initStaticState if using Graphics2D. Otherwise print error and
exit.
(setClip(Shape)): If clip == null and component == null, do
nothing.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics.java
(GdkGraphics(GtkComponentPeer)): Set font field to a sensible
default if component font is null.
|
|
|
|
|
|
| |
PR swing/23796
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
(create): Respect dialog's decorated flag.
|
|
|
|
|
|
| |
PR swing/23796
* gnu/java/awt/peer/gtk/GtkFramePeer.java (create): Respect
frame's decorated flag.
|
|
|
|
| |
(Grahics -> Graphics).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/qt/QtButtonPeer.java: Replace uses of
toolkit.eventQueue.postEvent() with QtToolkit.eventQueue.postEvent().
* gnu/java/awt/peer/qt/QtCheckboxPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtChoicePeer.java: Likewise.
* gnu/java/awt/peer/qt/QtComponentPeer.java: Likewise and similar
for guiThread and graphicsEnv.
* gnu/java/awt/peer/qt/QtListPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtMenuItemPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtMenuPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtScrollbarPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtTextAreaPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtTextFieldPeer.java: Likewise.
|
|
|
|
|
|
|
|
|
| |
Reintroduced (empty) method.
* gnu/java/awt/peer/gtk/GtkToolkit.java (static): Moved initialization
of imageIOSpis to new registerImageIOSpis() method.
(registerImageIOSpis): New (overloaded) method.
* javax/imageio/spi/IIORegistry.java (IIORegistry): Call to Toolkit
registration method if instanceof ClasspathToolkit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR awt/22979
* gnu/java/awt/peer/gtk/GtkImage.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c (GtkImage()):
New constructor.
(drawPixelsScaled): Return immediately if width or height is <= 0.
(drawPixelsScaledFlipped): Likewise for srcwidth, srcheight,
dstwidth, dstheight.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImage(String)):
Create a blank image when filename is "".
* javax/swing/ImageIcon.java (ImageIcon(String)): Mention blank
icons in documentation.
(ImageIcon(String,String)): Likewise.
|
|
|
|
|
|
|
| |
PR awt/23557
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (drawString(String,
float, float)): Return immediately if string is null or
zero-length.
|
|
|
|
|
|
| |
PR awt/20014
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (static): Always call
initStaticState.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR awt/23536
* gnu/java/awt/peer/gtk/GtkImage.java,
gnu_java_awt_peer_gtk_GtkImage.c (GtkImage(URL)): New constructor.
(GtkImage(byte[])) New constructor.
(loadImageFromData): New method.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImage(URL)): Call
GtkImage(URL) constructor.
(createImage(byte[],int,int)): Call GtkImage(byte[]) constructor.
* include/gnu_java_awt_peer_gtk_GtkImage.h: Regenerate.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (setBounds): Only
add parent's x and y co-ordinates to translation if parent's
parent is not a window.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR classpath/21660:
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(AWT_FILEDIALOG_LOAD): New macro.
(AWT_FILEDIALOG_SAVE): Likewise.
(create(GtkContainerPeer,int)): Add mode parameter. Create Save
dialog if mode is AWT_FILEDIALOG_SAVE. Remove workaround for
http://bugzilla.gnome.org/show_bug.cgi?id=166852.
(create()): Add mode argument to create call.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(setVisibleNative): Override method.
(setVisibleNativeUnlocked): Override method. Call gdk_flush after
showing or hiding window.
* include/gnu_java_awt_peer_gtk_GtkFileDialogPeer.h: Regenerate.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(beginNativeRepaintID): Remove variable.
(endNativeRepaintID): Likewise.
(cp_gtk_button_init_jni): Don't look up beginNativeRepaint and
endNativeRepaint methods.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (resizing): Remove
field.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(resizing): Remove field.
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (hiding): Remove
field.
(setVisible): Don't override.
* gnu/java/awt/peer/gtk/GtkChoicePeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
(selectNative): New method.
(selectNativeUnlocked): Likewise.
(select): Call setNativeUnlocked if in the GTK main thread,
selectNative otherwise.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetSetCursorUnlocked): New method.
(setCursor(Cursor)): Call gtkWidgetSetCursorUnlocked if in the GTK
main thread, gtkWidgetSetCursor otherwise.
(setVisibleNative): New method.
(setVisibleNativeUnlocked): Likewise.
(setVisible): Call setVisibleNativeUnlocked if in the GTK main
thread, setVisibleNative otherwise.
(hide): Call setVisible(false).
(show): Call setVisible(true).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(Java_gnu_java_awt_peer_qt_QtTextFieldPeer_getCaretPosition): Renamed
from Java_gnu_java_awt_peer_qt_QtTextFieldPeer_getCaretPositionNative.
* gnu/java/awt/peer/qt/QtComponentPeer.java (getMinimumSizeNative):
Removed unused native method.
(getPreferredSizeNative): Likewise.
* include/gnu_java_awt_peer_qt_QMatrix.h: Regenerated.
* include/gnu_java_awt_peer_qt_QPainterPath.h: Likewise.
* include/gnu_java_awt_peer_qt_QPen.h: Likewise.
* include/gnu_java_awt_peer_qt_QtAudioClip.h: Likewise.
* include/gnu_java_awt_peer_qt_QtButtonPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtCanvasPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtCheckboxPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtChoicePeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtComponentPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtContainerPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtDialogPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtFileDialogPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtFontMetrics.h: Likewise.
* include/gnu_java_awt_peer_qt_QtFontPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtFramePeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtGraphics.h: Likewise.
* include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h: Likewise.
* include/gnu_java_awt_peer_qt_QtImage.h: Likewise.
* include/gnu_java_awt_peer_qt_QtLabelPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtListPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtMenuBarPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtMenuItemPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtMenuPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtPanelPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtScreenDevice.h: Likewise.
* include/gnu_java_awt_peer_qt_QtScrollPanePeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtScrollbarPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtTextAreaPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtTextFieldPeer.h: Likewise.
* include/gnu_java_awt_peer_qt_QtToolkit.h: Likewise.
* include/gnu_java_awt_peer_qt_QtVolatileImage.h: Likewise.
* include/gnu_java_awt_peer_qt_QtWindowPeer.h: Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/qt/QtAudioClip.java
* gnu/java/awt/peer/qt/QtComponentGraphics.java
* gnu/java/awt/peer/qt/QtComponentPeer.java
* gnu/java/awt/peer/qt/QtDialogPeer.java
* gnu/java/awt/peer/qt/QtFontPeer.java
* gnu/java/awt/peer/qt/QtFramePeer.java
* gnu/java/awt/peer/qt/QtGraphics.java
* gnu/java/awt/peer/qt/QtImage.java
* gnu/java/awt/peer/qt/QtImageGraphics.java
* gnu/java/awt/peer/qt/QtLabelPeer.java
* gnu/java/awt/peer/qt/QtMenuBarPeer.java
* gnu/java/awt/peer/qt/QtMenuComponentPeer.java
* gnu/java/awt/peer/qt/QtMenuPeer.java
* gnu/java/awt/peer/qt/QtPanelPeer.java
* gnu/java/awt/peer/qt/QtRepaintThread.java
* gnu/java/awt/peer/qt/QtToolkit.java
* gnu/java/awt/peer/qt/QtVolatileImage.java
* include/gnu_java_awt_peer_qt_QtComponentPeer.h
* include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h
* include/gnu_java_awt_peer_qt_QtGraphics.h
* include/gnu_java_awt_peer_qt_QtMenuPeer.h
* include/gnu_java_awt_peer_qt_QtVolatileImage.h
* native/jni/qt-peer/componentevent.cpp
* native/jni/qt-peer/componentevent.h
* native/jni/qt-peer/eventmethods.h
* native/jni/qt-peer/keybindings.cpp
* native/jni/qt-peer/keybindings.h
* native/jni/qt-peer/qtcomponentpeer.cpp
* native/jni/qt-peer/qtframepeer.cpp
* native/jni/qt-peer/qtgraphics.cpp
* native/jni/qt-peer/qtimage.h
* native/jni/qt-peer/qtlabelpeer.cpp
* native/jni/qt-peer/qtmenucomponentpeer.cpp
* native/jni/qt-peer/qtmenupeer.cpp
* native/jni/qt-peer/qtscrollpanepeer.cpp
* native/jni/qt-peer/qttextfieldpeer.cpp
* native/jni/qt-peer/qtvolatileimage.cpp
* native/jni/qt-peer/qtwindowpeer.cpp:
Reindented, minor fixes.
* gnu/java/awt/peer/qt/QtImageDirectGraphics.java
New file.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkSelection.java: Update for new FSF
address.
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics.java (setClip(Shape)): Clear
clip when clip == null.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (setClip(Shape)):
Likewise.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (findFormatName):
Just return null when ext == null.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (setStroke): Clear
dashes if dashes is null.
(setStrokeUnlocked): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/qt/MainQtThread.java
* gnu/java/awt/peer/qt/QtComponentGraphics.java
* gnu/java/awt/peer/qt/QtComponentPeer.java
* gnu/java/awt/peer/qt/QtEmbeddedWindowPeer.java
* gnu/java/awt/peer/qt/QtFramePeer.java
* gnu/java/awt/peer/qt/QtImage.java
* gnu/java/awt/peer/qt/QtListPeer.java
* gnu/java/awt/peer/qt/QtScreenDeviceConfiguration.java
* gnu/java/awt/peer/qt/QtToolkit.java
* native/jni/qt-peer/componentevent.cpp
* native/jni/qt-peer/componentevent.h
* native/jni/qt-peer/eventmethods.h
* native/jni/qt-peer/mainqtthread.cpp
* native/jni/qt-peer/mainthreadinterface.cpp
* native/jni/qt-peer/mainthreadinterface.h
* native/jni/qt-peer/qtcomponentpeer.cpp
* native/jni/qt-peer/qtframepeer.cpp
* native/jni/qt-peer/qtgraphics.cpp
Refactored.
* include/gnu_java_awt_peer_qt_MainQtThread.h
* include/gnu_java_awt_peer_qt_QMatrix.h
* include/gnu_java_awt_peer_qt_QPainterPath.h
* include/gnu_java_awt_peer_qt_QPen.h
* include/gnu_java_awt_peer_qt_QtAudioClip.h
* include/gnu_java_awt_peer_qt_QtButtonPeer.h
* include/gnu_java_awt_peer_qt_QtCanvasPeer.h
* include/gnu_java_awt_peer_qt_QtCheckboxPeer.h
* include/gnu_java_awt_peer_qt_QtChoicePeer.h
* include/gnu_java_awt_peer_qt_QtComponentPeer.h
* include/gnu_java_awt_peer_qt_QtContainerPeer.h
* include/gnu_java_awt_peer_qt_QtDialogPeer.h
* include/gnu_java_awt_peer_qt_QtEmbeddedWindowPeer.h
* include/gnu_java_awt_peer_qt_QtFileDialogPeer.h
* include/gnu_java_awt_peer_qt_QtFontMetrics.h
* include/gnu_java_awt_peer_qt_QtFontPeer.h
* include/gnu_java_awt_peer_qt_QtFramePeer.h
* include/gnu_java_awt_peer_qt_QtGraphics.h
* include/gnu_java_awt_peer_qt_QtGraphicsEnvironment.h
* include/gnu_java_awt_peer_qt_QtImage.h
* include/gnu_java_awt_peer_qt_QtLabelPeer.h
* include/gnu_java_awt_peer_qt_QtListPeer.h
* include/gnu_java_awt_peer_qt_QtMenuBarPeer.h
* include/gnu_java_awt_peer_qt_QtMenuComponentPeer.h
* include/gnu_java_awt_peer_qt_QtMenuItemPeer.h
* include/gnu_java_awt_peer_qt_QtMenuPeer.h
* include/gnu_java_awt_peer_qt_QtPanelPeer.h
* include/gnu_java_awt_peer_qt_QtPopupMenuPeer.h
* include/gnu_java_awt_peer_qt_QtScreenDevice.h
* include/gnu_java_awt_peer_qt_QtScrollPanePeer.h
* include/gnu_java_awt_peer_qt_QtScrollbarPeer.h
* include/gnu_java_awt_peer_qt_QtTextAreaPeer.h
* include/gnu_java_awt_peer_qt_QtTextFieldPeer.h
* include/gnu_java_awt_peer_qt_QtToolkit.h
* include/gnu_java_awt_peer_qt_QtVolatileImage.h
* include/gnu_java_awt_peer_qt_QtWindowPeer.h
Regenerated.
* gnu/java/awt/peer/qt/QtRepaintThread.java:
New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/GLightweightPeer.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java,
gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
gnu/java/awt/peer/gtk/GtkToolkit.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java,
gnu/java/awt/peer/qt/QtComponentPeer.java,
gnu/java/awt/peer/qt/QtContainerPeer.java,
gnu/java/awt/peer/qt/QtFramePeer.java,
gnu/java/awt/peer/qt/QtMenuComponentPeer.java,
gnu/java/awt/peer/qt/QtScreenDeviceConfiguration.java,
gnu/java/awt/peer/qt/QtTextAreaPeer.java,
gnu/java/awt/peer/qt/QtTextFieldPeer.java,
gnu/java/awt/peer/qt/QtWindowPeer.java,
java/awt/peer/ComponentPeer.java,
java/awt/peer/ContainerPeer.java, java/awt/peer/FramePeer.java,
java/awt/peer/MenuComponentPeer.java,
java/awt/peer/TextComponentPeer.java,
java/awt/peer/WindowPeer.java: Add new 1.5 methods.
* java/awt/Window.java (Window()): Initialize
graphicsConfiguration.
* java/awt/GraphicsConfiguration.java
(createCompatibleVolatileImage(int,int,int)): New method.
* java/awt/Font.java (Font(String,Map)): Add FIXME.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(getLocalGraphicsEnvironment): Call new constructor.
* gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java (getToolkit):
Remove method.
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
(GdkGraphicsEnvironment(GtkToolkit)): Remove method.
(GdkGraphicsEnvironment()): New constructor.
(getToolkit): Remove method.
* gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java
(getToolkit): Remove method.
(createCompatibleVolatileImage): New method.
* gnu/java/awt/ClasspathToolkit.java (getFont): Add FIXME.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu_java_awt_peer_gtk_GtkFramePeer.c (postConfigureEvent): Prevent
callback calling back into peers.
(setBounds): Likewise.
(setMenuBarWidthUnlocked): New method.
* native/jni/gtk-peer/gtkpeer.h (cp_gtk_filedialog_init_jni):
Declare function.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(gtkInit): Call cp_gtk_filedialog_init_jni.
(loadSystemColors): Work around deadlock.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
(textcomponent_changed_cb): Don't release GDK lock.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
(item_activate_cb): Don't release GDK lock.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
(item_highlighted_cb): Don't release GDK lock.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(component_button_press_cb): Don't release GDK lock.
(component_button_release_cb): Likewise.
(component_motion_notify_cb): Likewise.
(component_enter_notify_cb): Likewise.
(component_leave_notify_cb): Likewise.
(component_expose_cb): Likewise.
(component_focus_in_cb): Likewise.
(component_focus_out_cb): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(block_expose_event_cb): Remove callback.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java,
gnu_java_awt_peer_gtk_GtkWindowPeer.c (postConfigureEvent):
Prevent callback calling back into peers.
(setBounds): Likewise.
(nativeSetBoundsUnlocked): New method.
(setBoundsUnlocked): Likewise.
(nativeSetVisibleUnlocked): Likewise.
(setVisibleUnlocked): Likewise.
(window_delete_cb): Don't release GDK lock.
(window_destroy_cb): Likewise.
(window_show_cb): Likewise.
(window_active_state_change_cb): Likewise.
(window_focus_state_change_cb): Likewise.
(window_focus_in_cb): Likewise.
(window_focus_out_cb): Likewise.
(window_window_state_cb): Likewise.
(window_property_changed_cb): Likewise.
(realize_cb): Likewise.
* gnu/java/awt/peer/gtk/GtkToolkit.java (mainThread): New
variable.
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
gnu_java_awt_peer_gtk_GtkFileDialogPeer.c (setVisible): Prevent
callback calling back into peers.
(filename_filter_cb): Don't release GDK lock.
(handle_response_cb): Likewise.
(cp_gtk_filedialog_init_jni): New function.
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java (setState): Prevent
callback from calling back into peers.
(item_toggled_cb): Don't release GDK lock.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_prepared_cb): Don't
release GDK lock.
(area_updated_cb): Likewise.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java,
gnu_java_awt_peer_gtk_GdkGraphics2D.c (initStateUnlocked): New
method.
(cairoSurfaceSetFilterUnlocked): Likewise.
(initComponentGraphics2DUnlocked): Likewise.
(setTexturePixelsUnlocked): Likewise.
(setGradientUnlocked): Likewise.
(cairoSetMatrixUnlocked): Likewise.
(cairoSetRGBAColorUnlocked): Likewise.
(cairoSetLineWidthUnlocked): Likewise.
(cairoSetLineCapUnlocked): Likewise.
(cairoSetLineJoinUnlocked): Likewise.
(cairoSetDashUnlocked): Likewise.
(cairoSetMiterLimitUnlocked): Likewise.
(setPaintUnlocked): Likewise.
(setTransformUnlocked): Likewise.
(setStrokeUnlocked): Likewise.
(setColorUnlocked): Likewise.
(setBackgroundUnlocked): Likewise.
(setRenderingHintsUnlocked): Likewise.
(setFontUnlocked): Likewise.
(realize_cb): Don't release GDK lock. Call
initComponentGraphics2DUnlocked.
* gnu/java/awt/peer/gtk/GdkGraphics.java,
gnu_java_awt_peer_gtk_GdkGraphics.c (initStateUnlocked): New
method.
(initComponentGraphicsUnlocked): New method.
(realize_cb): Don't release GDK lock. Call
initComponentGraphicsUnlocked.
* include/gnu_java_awt_peer_gtk_GdkGraphics.h: Regenerate.
* include/gnu_java_awt_peer_gtk_GdkGraphics2D.h: Likewise.
* include/gnu_java_awt_peer_gtk_GtkFramePeer.h: Likewise.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Likewise.
|
|
|
|
|
|
|
|
|
| |
and add FIXME.
(setMaximizedBounds): Likewise.
* include/gnu_java_awt_peer_qt_QtFramePeer.h: Regenerated.
* native/jni/qt-peer/.cvsignore: New file.
* native/jni/qt-peer/Makefile.am (libqtpeer_la_SOURCES):
Remove eventmethods.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
(setComponentBounds): Don't post COMPONENT_RESIZED event.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(setBoundsCallbackID): Remove variable.
(cp_gtk_window_init_jni): Don't initialize setBoundsCallbackID.
(setBoundsCallback): Remove method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
(setMenuBarPeer): Check if menubar is NULL.
(setMenuBarWidth): Likewise.
* java/awt/Window.java (dispatchEventImpl): Validate upon
receiving a COMPONENT_RESIZED event.
(setBoundsCallback): Remove method.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerate.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (setBoundsCallback):
Remove method declaration.
(postConfigureEvent): Separate handling of resizes and moves.
Call setSize and post COMPONENT_RESIZED event.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
Separate handling of resizes and moves. Call setSize.
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
(setComponentBounds): Call setSize and post COMPONENT_RESIZED
event.
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (isValidating):
Remove field.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(setBoundsCallbackID): Remove variable.
(cp_gtk_window_init_jni): Don't initialize setBoundsCallbackID.
(setBoundsCallback): Remove method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
(setMenuBarPeer): Check if menubar is NULL.
(setMenuBarWidth): Likewise.
* java/awt/Window.java (dispatchEventImpl): Validate upon
receiving a COMPONENT_RESIZED event.
(setBoundsCallback): Remove method.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerate.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (setBoundsCallback):
Remove method declaration.
(postConfigureEvent): Separate handling of resizes and moves.
Call setSize and post COMPONENT_RESIZED event.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (postConfigureEvent):
Separate handling of resizes and moves. Call setSize and post
COMPONENT_RESIZED event.
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
(setComponentBounds): Call setSize and post COMPONENT_RESIZED
event.
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (isValidating):
Remove field.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/qt/QtButtonPeer.java
* gnu/java/awt/peer/qt/QtCheckboxPeer.java
* gnu/java/awt/peer/qt/QtChoicePeer.java
* gnu/java/awt/peer/qt/QtComponentGraphics.java
* gnu/java/awt/peer/qt/QtComponentPeer.java
* gnu/java/awt/peer/qt/QtContainerPeer.java
* gnu/java/awt/peer/qt/QtDialogPeer.java
* gnu/java/awt/peer/qt/QtFontPeer.java
* gnu/java/awt/peer/qt/QtFramePeer.java
* gnu/java/awt/peer/qt/QtGraphics.java
* gnu/java/awt/peer/qt/QtImage.java
* gnu/java/awt/peer/qt/QtImageGraphics.java
* gnu/java/awt/peer/qt/QtListPeer.java
* gnu/java/awt/peer/qt/QtMenuBarPeer.java
* gnu/java/awt/peer/qt/QtMenuItemPeer.java
* gnu/java/awt/peer/qt/QtMenuPeer.java
* gnu/java/awt/peer/qt/QtScrollbarPeer.java
* gnu/java/awt/peer/qt/QtTextAreaPeer.java
* gnu/java/awt/peer/qt/QtTextFieldPeer.java
* gnu/java/awt/peer/qt/QtToolkit.java
* gnu/java/awt/peer/qt/QtWindowPeer.java
* native/jni/qt-peer/keybindings.cpp
* native/jni/qt-peer/keybindings.h
* native/jni/qt-peer/qtbuttonpeer.cpp
* native/jni/qt-peer/qtcanvaspeer.cpp
* native/jni/qt-peer/qtcheckboxpeer.cpp
* native/jni/qt-peer/qtchoicepeer.cpp
* native/jni/qt-peer/qtcomponent.cpp
* native/jni/qt-peer/qtcomponentpeer.cpp
* native/jni/qt-peer/qtdialogpeer.cpp
* native/jni/qt-peer/qtframepeer.cpp
* native/jni/qt-peer/qtgraphics.cpp
* native/jni/qt-peer/qtimage.cpp
* native/jni/qt-peer/qtlabelpeer.cpp
* native/jni/qt-peer/qtlistpeer.cpp
* native/jni/qt-peer/qtmenupeer.cpp
* native/jni/qt-peer/qtpanelpeer.cpp
* native/jni/qt-peer/qtscrollbarpeer.cpp
* native/jni/qt-peer/qtscrollpanepeer.cpp
* native/jni/qt-peer/qttextareapeer.cpp
* native/jni/qt-peer/qttextfieldpeer.cpp
* native/jni/qt-peer/qtwindowpeer.cpp
* native/jni/qt-peer/slotcallbacks.cpp
* native/jni/qt-peer/slotcallbacks.h
Reindented, Transmogrified and Wielaardituded.
* gnu/java/awt/peer/qt/QtEmbeddedWindowPeer.java
* native/jni/qt-peer/eventmethods.h
* native/jni/qt-peer/qtembeddedwindowpeer.cpp
* native/jni/qt-peer/slotcallbacks.moc.h
New files
* native/jni/qt-peer/eventmethods.cpp
* native/jni/qt-peer/slotcallbacks.moc
Removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkClipboardNotifier.java: New class.
* gnu/java/awt/peer/gtk/GtkSelection.java: New class.
* gnu/java/awt/peer/gtk/GtkImage.java (GtkImage(Pointer)): New
constructor.
(createFromPixbuf): New private native method.
* gnu/java/awt/peer/gtk/GtkToolkit.java (systemClipboard): Removed.
(getSystemClipboard): Do security check and return
GtkClipboard.getInstance().
* include/Makefile.am: Add gnu_java_awt_peer_gtk_GtkSelection.h.
* include/gnu_java_awt_peer_gtk_GtkClipboard.h: Regenerated.
* include/gnu_java_awt_peer_gtk_GtkImage.h: Regenerated.
* include/gnu_java_awt_peer_gtk_GtkSelection.h: New header file.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c:
Reimplemented.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c
(Java_gnu_java_awt_peer_gtk_GtkImage_createFromPixbuf): New
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/ClasspathToolkit.java (nativeQueueEmpty): Remove
method.
(wakeNativeQueue): Likewise.
(iterateNativeQueue): Likewise.
* gnu/java/awt/peer/gtk/GtkToolkit.java (static): Start GTK main
thread.
(nativeQueueEmpty): Remove method.
(wakeNativeQueue): Likewise.
(iterateNativeQueue): Likewise.
(gtkMain): New method.
* include/gnu_java_awt_peer_gtk_GtkToolkit.h: Regenerate.
* java/awt/EventQueue.java: Remove references to ClasspathToolkit.
* java/awt/Frame.java (fireDummyEvent): Remove method.
Remove calls to fireDummyEvent.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c
(dispose): Don't wake up main thread.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c: Remove
single-thread code.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkButtonPeer.java (handleEvent): Remove
method.
(postActionEvent): New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
Rename state_to_awt_mods cp_gtk_state_to_awt_mods.
* native/jni/gtk-peer/gtkpeer.h: Declare cp_gtk_state_to_awt_mods.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(clicked_cb): New function.
(connectSignals): Connect clicked_cb callback to "clicked" signal.
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/ClasspathToolkit.java
(getScreenSize, getColorModel, getFontMetrics, getImage, createImage,
createImageProducer, registerImageIOSpis):
Remove redundant (overloaded) methods.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(registerImageIOSpis): Move registration to static initializer.
* javax/imageio/spi/IIORegistry.java:
Remove call to Toolkit registration method.
|