| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Add check for gethostbyname_r.
Add check for MSG_NOSIGNAL and SO_NOSIGPIPE.
* native/jni/native-lib/cpnet.c (SOCKET_NOSIGNAL): Define
SOCKET_NOSIGNAL according to the configure check.
(cpnet_send): Use SOCKET_NOSIGNAL.
(cpnet_sendTo): Likewise.
(cpnet_getHostByName): Use gethostbyname in case gethostbyname_r is not
defined.
* native/jni/native-lib/cpio.c: Define O_SYNC and O_DSYNC in case they
are not available.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/net/local/LocalSocketImpl.java
Only load native lib if this is supported by runtime.
* native/jni/java-net/local.c
Include config.h unconditionally.
* native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c
Include config.h unconditionally.
|
|
|
|
|
|
| |
PR classpath/28537
* native/plugin/Makefile.am (libgcjwebplugin_la_CXXFLAGS):
Transform gappletviewer name using program_transform_name.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(query_formats): g_free 'name' after usage.
g_strfreev 'ch', the gdk_pixbuf_format_get_extensions instance.
g_strfreev 'ch', the gdk_pixbuf_format_get_mime_types instance.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c
(Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes):
Create a 'short' array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkMainThread.java
New file.
* gnu/java/awt/peer/gtk/GtkChoicePeer.java
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
Replace GtkToolkit.mainThread with GtkMainThread.mainThread.
* gnu/java/awt/peer/gtk/GtkToolkit.java
Minor style fixes; removed unused fields,
set fields to private where possible.
(createDialog, createFrame, createWindow, createEmbeddedWindow):
Call GtkMainThread.createWindow().
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(dispose): New method.
* include/gnu_java_awt_peer_gtk_GtkToolkit.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(gtkQuit): New native method.
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawGlyphVector): Synchronize against font object when drawing.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(nativeDrawGlyphVector): Use pango locking when drawing.
(install_font_peer): Use pango locking when creating the cairo face.
|
|
|
|
|
|
|
|
|
| |
Fixes PR 28608.
* java/nio/DirectByteBufferImpl.java (duplicate): only reset if
the mark has been set.
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(Java_java_nio_VMDirectByteBuffer_allocate): zero out the
allocated data.
|
|
|
|
|
|
|
| |
Reported by Raif S. Naffah <raif@swiftdsl.com.au>
* native/jni/gconf-peer/GConfNativePeer.c (init_gconf_client):
g_type_init earlier in function to correctly initialize the
type system used by the backend.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(grab, nativeGrab): New methods.
* include/gnu_java_awt_peer_gtk_ComponentGraphics.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
(nativeGrab): New method.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(print): Implement.
* java/awt/Component.java
(printAll): Should call peer print method.
|
|
|
|
|
|
|
| |
* configure.ac (gconf-peer): Check for gdk-2.0.
* native/jni/gconf-peer/Makefile.am
(AM_LDFLAGS): Use GDK_LIBS.
(AM_CFLAGS): Use GDK_CFLAGS.
|
|
|
|
|
| |
* native/jni/qt-peer/Makefile.am (libqtpeer_la_LDFLAGS): Add
-avoid-version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Choice.java:
(accessibleAction): Call select() directly.
(add, insert, remove): Reimplement.
(dispatchEventImpl): Always call super.
(processItemEvent): Does not set the index.
* include/gnu_java_awt_peer_gtk_GtkChoicePeer.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
(append): removed.
(nativeAdd): Name changed to add.
(selection_changed_cb): Simplify callback.
* gnu/java/awt/peer/gtk/GtkChoicePeer.java
(selected): New field.
(add): Replaced with native impl.
(handleEvent): New method.
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jawt/Makefile.am (libjawt_la_LDFLAGS): Add
-avoid-version.
* native/jni/gtk-peer/Makefile.am (libgtkpeer_la_LDFLAGS):
Likewise.
* native/jni/midi-alsa/Makefile.am (libgjsmalsa_la_LDFLAGS):
Likewise.
* native/jni/midi-dssi/Makefile.am (libgjsmdssi_la_LDFLAGS):
Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
Removed function declarations.
(connect_signals_for_widget): Removed implementation because
stub functions have been removed.
(drag_begin_cb): Removed function.
(drag_motion_cb): Likewise.
(drag_data_get_cb): Likewise.
(drag_data_delete_cb): Likewise.
(drag_drop_cb): Likewise.
(drag_end_cb): Likewise.
(drag_data_received_cb): Likewise.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
(Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_create):
Fixed to use gref not ptr.
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
Added new static helper function.
(Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_connectSignals):
Moved code to connect signals to the helper function.
(Java_gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer_create):
Removed ptr field and changed to use global gref.
(connect_signals_for_widget): Implemented new helper.
(setTarget): Added call to connect_signals_for_widget.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
Added more static functions to handle widget signals.
(create): Initialized the javaObj field.
(connectSignals): Added code to connect all signals to
the appropriate functions and initialized all java
function fields.
(drag_begin_cb): New callback, not implemented.
(drag_motion_cb): Likewise.
(drag_data_get_cb): Likewise.
(drag_data_delete_cb): Likewise.
(drag_drop_cb): Likewise.
(drag_end_cb): Likewise.
(drag_data_received_cb): Likewise.
(setTarget): New function.
(nativeStartDrag): Added code to set the destination and source
widgets.
* java/awt/dnd/DragSource.java
(startDrag): Removed FIXME.
* java/awt/dnd/DragGestureRecognizer.java
(fireDragGestureRecognized): Reset recognizer when events are fired.
* java/awt/Component.java
(setDropTarget): Added code to create the DropTargetContextPeer.
* include/GtkDragSourceContextPeer.h: Regenerated.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java: Removed file.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java
(GtkDropTargetContextPeer): Implemented.
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
(GtkDragSourceContextPeer): Added code to set the target.
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetMatrix): Remove
g_assert from unused obj.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): Mark
obj as unused and remove g_assert on it.
|
|
|
|
|
|
|
|
| |
* include/java_lang_VMSystem.h
* vm/reference/java/lang/VMSystem.java
* native/jni/java-lang/java_lang_VMSystem.c
(nanoTime, currentTimeMillis): Switch the former to native code and
the latter to java.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(requestFocus()): Reimplemented to use requestFocusImpl().
(requestFocus(boolean)): Reimplemented to use requestFocusImpl().
(requestFocusInWindow()): Reimplemented to use requestFocusImpl().
(requestFocusInWindow(boolean)): Reimplemented to use
requestFocusImpl().
(requestFocusImpl): Reimplemented focus request to use
new peer method. Also added some obvious additional checks
for rejecting focus requests early.
* java/awt/ComponentPeer.java
(requestFocus(Component,boolean,boolean,long)): Documented
this method.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(requestFocus): New field.
(gtkWidgetHasFocus): New native method.
(gtkWidgetCanFocus): New native method.
(requestFocus): Replaced with assert false to prevent
usage of obsolete method.
(postFocusEvent(int,boolean,Component)): New overloaded method
for posting the focus event to a specific target.
(postFocusEvent(int,boolean)): Post event to requestFocus
component.
(requestFocus(Component,boolean,boolean,long)): Implemented.
(getWindowFor): New helper method.
(isLightweightDescendant): New helper method.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(gtkWindowHasFocus): New native method.
(requestFocus(Component,boolean,boolean,long)): New method.
Overrides GtkComponentPeer method to specially handly the
case when a Window receives a focus request for a lightweight
child.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetHasFocus): New native method.
(gtkWidgetCanFocus): New native method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(gtkWindowHasFocus): New native method.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h,
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h:
Regenerated.
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c
(init): Default to the actual depth in the worst case.
* java/awt/Font.java
(createFont(int, File)): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/awt/Demo.java
(Demo): Added new window for DnD demo.
(DragDropWindow): New class.
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java:
Added new fields and declarations for native functions.
(GtkDragSourceContextPeer): Implemented.
(getComponentPeer): New function.
(startDrag): Partially implemented.
(getCursor): Implemented.
(setCursor): Implemented.
* include/GtkDragSourceContextPeer.h: New file.
* include/Makefile.am: Added new header file.
* java/awt/Component.java
(addNotify): Added call to the dropTarget's addNotify.
* java/awt/dnd/DragSource.java
(startDrag): Fixed code to use shared instances of peer and
context.
(getDragThreshold): Added stub.
* java/awt/dnd/DropTarget.java
(DropTarget): Implemented fully.
(addNotify): Added code to get the peer of the parent that is
not lightweight.
* java/awt/dnd/DropTargetDragEvent.java
(getTransferable): Added stub.
* native/jni/gtk-peer/GtkDragSourceContextPeer.c: New file.
* native/jni/gtk-peer/Makefile.am: Added new c file.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java:
Changed to extend GtkGenericPeer.
(GtkDropTargetContextPeer): New constructor.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java:
Changed to extend GtkGenericPeer.
(GtkDropTargetContextPeer): New constructor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gconf-peer/GConfNativePeer.c (init_gconf_client):
Fixed comment. This functions now requires to be called
with gdk lock held, the comment states that.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_init_1id_1cache):
Introduces gdk locks around critical regions of code.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1keys):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1nodes):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1suggest_1sync):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1unset):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1get_1string):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1set_1string):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1remove_1dir):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1add_1dir):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_finalize_1class):
* native/jni/gconf-peer/Makefile.am: The GConf peer now depends on GTK.
|
|
|
|
|
|
|
|
|
|
|
| |
include/gnu_java_awt_peer_gtk_GdkTextLayout.h.
* include/gnu_java_awt_peer_gtk_GdkTextLayout.h: Removed.
* native/jni/gtk-peer/Makefile.am: Remove
gnu_java_awt_peer_gtk_GdkTextLayout.c
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c:
Removed.
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h: Regenerated.
|
|
|
|
| |
Removed C++ style comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java,
* java/awt/MouseInfo.java,
* java/awt/PointerInfo.java,
* java/awt/peer/MouseInfoPeer.java:
New files.
* java/awt/Image.java
(accelerationPriority): New field.
(setAccelerationPriority, getAccelerationPriority): New methods..
* include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java:
(getMouseCoordinates): New method.
* gnu/java/awt/peer/gtk/GtkFramePeer.java
(updateAlwaysOnTop): Remove stub overload.
* gnu/java/awt/ClasspathToolkit.java,
* gnu/java/awt/peer/gtk/GtkToolkit.java,
* include/gnu_java_awt_peer_gtk_GtkToolkit.h,
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c:
(getMouseInfoPeer): New method.
(getMouseNumberOfButtons): New method.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(gtkWindowSetAlwaysOnTop): New method.
(updateAlwaysOnTop): Implement.
* java/awt/Toolkit.java,
(getMouseInfoPeer): New method.
* java/awt/Window.java
(alwaysOnTop): New field.
(isAlwaysOnTop, setAlwaysOnTop): New methods.
* java/awt/peer/WindowPeer.java: Doc fix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java: Organized imports.
(cairoArc): New native method.
(cairoRestore): New native method.
(cairoSave): New native method.
(cairoScale): New native method.
(createPath): New method to centralize code from draw and fill.
(draw): Modified to use createPath method.
(fill): Modified to use createPath method.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Added
function declarations.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoScale): New
method.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSave): New
method.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoArc): New
method.
|
|
|
|
|
|
| |
* native/jni/gconf-peer/GConfNativePeer.c
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1get_1string):
Fixed C++ style comment.
|
|
|
|
|
|
|
|
|
| |
Fixes PR28350.
* native/jni/gconf-peer/GConfNativePeer.c:
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1set_1string):
Changed if-expression.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1get_1string):
Added check for _value not being NULL.
|
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c
(read): Use fd when local sockets are disabled to make the
compiler quite.
(write): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c
(available): Pass fd as argument and avoid JNI class/field
lookup.
(read): Likewise.
(write): Likewise.
* include/gnu_java_net_local_LocalSocketImpl.h:
Regenerated.
* gnu/java/net/local/LocalSocketImpl.h
(available): Pass fd as argument and avoid JNI class/field
lookup.
(read): Likewise.
(write): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gconf-peer/GConfNativePeer.c:
Fixed indentation to be more compliant to the GNU coding
guidelines.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1unset):
Added explicit test for errors in the GConf backend.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1get_1string):
Added explicit test for errors in the GConf backend.
Fixed Segmentation Fault when non valid key names are
given as input.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1set_1string):
likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists):
Added explicit test for errors in the GConf backend.
* gnu/java/util/prefs/gconf/GConfNativePeer.java:
Added javadoc comments for all native methods.
(nodeExist): removed test to check for valid absolute path name
for nodes.
(startWatchingNode): likewise.
(stopWatchingNode): likewise.
(setString): likewise, plus fixed javadoc comments.
(unset): likekwise.
(getKey): likewise.
(getKeys): likewise, also fixed javadoc comments.
(getChildrenNodes): likewise.
* gnu/java/util/prefs/GConfBasedPreferences.java:
changed DEFAULT_USER_ROOT to /apps/classpath.
(constructor): Test to check for a valid absolute path for nodes
is now in the contructor for that node, instead of being on
each method of the backend.
(getGConfKey): removed empty new line.
|
|
|
|
|
|
| |
* native/plugin/Makefile.am (nativeexeclib_LTLIBRARIES): Rename
from lib_LTLIBRARIES.
(install-plugin): Depend on nativeexeclib_LTLIBRARIES.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java:
Changed all return values of native functions to void.
(create): Changed function to be syncronized. Removed
call to put value in groupMap, this is now done from
the native code.
(setState): Changed function to be syncronized.
(setLabel): Changed function to be syncronized.
(setCheckboxGroup): Changed function to be syncronized. Removed
call to put value in groupMap, this is now done from
the native code.
(postItemEvent): Changed function to be syncronized.
(addToGroupMap): New function. Called by native code to add
new value to the group.
(dispose): Changed function to be syncronized.
* include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h: Updated
all functions.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
(cp_gtk_checkbox_init_jni): Added code to link to
java function.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_createRadioButton):
Changed return value to void. Added call
to java function to set pointer in groupMap.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_addtoGroup): Likewise. Also,
changed check to an assert. Also, removed call to set/del pointer.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_removeFromGroup):
Likewise. Also, added check to determine if native_group should be
set to NULL.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_switchToGroup): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tom Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkCheckboxGroupPeer.java: Removed class.
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java:
Added current_group, groupMap fields. Added definitions for
new native functions.
(create): Removed FIXME. Added code to create the check button or
radio button when appropriate. Updated groupMap to contain
pointer to the newly created group.
(setCheckboxGroup): Added code to handle all cases. Removing
a button from a group, adding a button to a group, or changing the
group of a button.
(dispose): Changed to call super.
* include/Makefile.am: Removed reference to
gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h.
* include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h: Removed file.
* include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h: Added definitions
for new functions.
* native/jni/gtk-peer/Makefile.am: Removed reference to
gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c:
Removed file.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_combobox_get_widget):
Renamed to checkbox_get_widget.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_connectSignals):
Changed to use checkbox_get_widget.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_nativeSetCheckboxGroup):
Removed.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkWidgetModifyFont):
Changed to use checkbox_get_widget.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_gtkButtonSetLabel):
Likewise.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_createCheckButton):
New function. Creates checkbutton without a group.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_createRadioButton):
Creates a radio button in a group, using groupPointer. If groupPointer
is 0, then a new group is created.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_addToGroup): Adds the
check button to a group, using groupPointer. A radio button is created
in its place. If groupPointer is 0, then a new group is created.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_removeFromGroup): The
radio button is removed from the group. A check button is created in
its place.
(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_switchToGroup): The
radio button is moved to a new group.
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoSurface.java: Swap the data from the
GdkPixbuf correctly on big endian systems. Fix a typo in the little
endian swapping code.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c
(Java_gnu_java_awt_peer_gtk_GtkImage_getPixels): Swap the pixeldata
without alpha information correctly on big endian systems.
|
|
|
|
|
| |
* native/plugin/Makefile.am (libgcjwebplugin_la_CXXFLAGS): Define
APPLETVIEWER_EXECUTABLE to gappletviewer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
(create): Added check to prevent Seg Fault. Should not
set the label if it is null.
* gnu/java/awt/peer/gtk/GtkLabelPeer.java
(setText): Changed to be a non-native function. Calls
setNativeText if the String parameter is non-null.
(setNativeText): Replaces old native setText function.
* include/gnu_java_awt_peer_gtk_GtkLabelPeer.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
(Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setText): Removed.
Replaced by Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setNativeText.
(Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setNativeText): Replaced
Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setText.
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(drawImage): Clip volatile image correctly.
(drawVolatileImage): Added arguments for clipping.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
(drawVolatileImage): Added arguments for clipping. Clip image
correctly.
* include/gnu_java_awt_peer_gtk_ComponentGraphics.h: Regenerated.
|
| |
|
|
|
|
|
|
| |
PR classpath/28076:
* native/jni/gconf-peer/Makefile.am (libgconfpeer_la_LIBADD):
Fixed typo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on gnu/java/util/prefs/gconf/%.class.
* Java_gnu_java_util_prefs_gconf_GConfNativePeer_init_1class: Fix
chache typo, should be cache.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1keys):
Declare tmp early.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1nodes):
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1remove_1dir):
Don't return a value for void function.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1add_1dir)
Likewise.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists):
Mark clazz as unused. Return JNI_FALSE, not NULL for jboolean
function.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_finalize_1class):
Mark clazz ad unused.
|
|
|
|
|
|
|
| |
* java/awt/event/KeyEvent.java:
(VK_WINDOWS, VK_CONTEXT_MENU, VK_BEGIN): Add new keysym fields.
* natve/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
Implement WINDOWS, ALT_GR and CONTEXT_MENU keysyms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/util/prefs/GConfBasedPreferences.java: new class.
* gnu/java/util/prefs/GConfBasedFactory.java: new class.
* gnu/java/util/prefs/gconf/GConfNativePeer.java: new class.
* gnu_java_util_prefs_gconf_GConfNativePeer.h: generated
header file.
* classpath/native/jni/gconf-peer/GConfNativePeer.c: new C file. + * configure.ac: update to introduce new files. Added options
to build gconf native peer used by the GConf preference backend.
* include/Makefile.am: update to introduce new files.
* native/jni/Makefile.am update to introduce new files.
* scripts/check_jni_methods.sh: added three new ignored file
from check.
* native/jni/gconf-peer/Makefile.am: new Makefile needed to
build gconf-peer shared library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoDrawLine): New native method.
(cairoDrawRect): New native method.
(cairoFillRect): New native method.
(drawLine): Use special native method.
(drawRect): Use special native method.
(fillRect): Use special native method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(cairoDrawLine): New native method.
(cairoDrawRect): New native method.
(cairoFillRect): New native method.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
|
|
|
|
|
| |
(Java_gnu_java_awt_peer_gtk_GtkImage_getPixels): Return when array
cannot be allocated.
|
|
|
|
|
|
|
| |
* native/plugin/gcjwebplugin.cc
(NP_Initialize): Removed code to create whitelist file.
(GCJ_New): Added code to create whitelist file.
(plugin_user_trusts_documentbase): Fixed error message.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoSurface.java
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(create): Use stride in ints.
|