[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/06/20 20:36:14 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java GtkLabelPeer.java native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkLabelPeer.c include: gnu_java_awt_peer_gtk_GtkLabelPeer.h Log message: 2006-06-20 Lillian Angel <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7885&r2=1.7886 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.24&r2=1.25 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkLabelPeer.java?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c?cvsroot=classpath&r1=1.17&r2=1.18 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkLabelPeer.h?cvsroot=classpath&r1=1.11&r2=1.12 Patches: Index: ChangeLog === RCS file: /cvsroot/classpath/classpath/ChangeLog,v retrieving revision 1.7885 retrieving revision 1.7886 diff -u -b -r1.7885 -r1.7886 --- ChangeLog 20 Jun 2006 18:24:13 - 1.7885 +++ ChangeLog 20 Jun 2006 20:36:13 - 1.7886 @@ -1,5 +1,21 @@ 2006-06-20 Lillian Angel <[EMAIL PROTECTED]> + * 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. + +2006-06-20 Lillian Angel <[EMAIL PROTECTED]> + * javax/swing/text/JTextComponent.java (AccessibleJTextComponent): Rewrote all javadocs for this inner class. Index: gnu/java/awt/peer/gtk/GtkCheckboxPeer.java === RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -b -r1.24 -r1.25 --- gnu/java/awt/peer/gtk/GtkCheckboxPeer.java 22 Feb 2006 14:47:50 - 1.24 +++ gnu/java/awt/peer/gtk/GtkCheckboxPeer.java 20 Jun 2006 20:36:14 - 1.25 @@ -78,7 +78,10 @@ create (old_group); currentState = checkbox.getState(); gtkToggleButtonSetActive(currentState); -gtkButtonSetLabel (checkbox.getLabel ()); + +String label = checkbox.getLabel(); +if (label != null) + gtkButtonSetLabel(label); } /** Index: gnu/java/awt/peer/gtk/GtkLabelPeer.java === RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GtkLabelPeer.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -b -r1.25 -r1.26 --- gnu/java/awt/peer/gtk/GtkLabelPeer.java 13 Feb 2006 18:57:03 - 1.25 +++ gnu/java/awt/peer/gtk/GtkLabelPeer.java 20 Jun 2006 20:36:14 - 1.26 @@ -56,7 +56,7 @@ native void nativeSetAlignment (float alignment); - public native void setText(String text); + public native void setNativeText(String text); native void setNativeBounds (int x, int y, int width, int height); // Because this is a composite widget, we need to retrieve the @@ -69,6 +69,12 @@ create (label.getText (), getGtkAlignment (label.getAlignment ())); } + public void setText(String text) + { +if (text
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/06/30 14:47:17 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java include: Makefile.am gnu_java_awt_peer_gtk_GtkCheckboxPeer.h native/jni/gtk-peer: Makefile.am gnu_java_awt_peer_gtk_GtkCheckboxPeer.c Removed files: gnu/java/awt/peer/gtk: GtkCheckboxGroupPeer.java include: gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c Log message: 2006-06-30 Lillian Angel <[EMAIL PROTECTED]> Tom Fitzsimmons <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7976&r2=1.7977 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxGroupPeer.java?cvsroot=classpath&r1=1.3&r2=0 http://cvs.savannah.gnu.org/viewcvs/classpath/include/Makefile.am?cvsroot=classpath&r1=1.66&r2=1.67 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h?cvsroot=classpath&r1=1.10&r2=1.11 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.h?cvsroot=classpath&r1=1.5&r2=0 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/Makefile.am?cvsroot=classpath&r1=1.45&r2=1.46 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxGroupPeer.c?cvsroot=classpath&r1=1.6&r2=0
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/06/30 19:28:22 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java include: gnu_java_awt_peer_gtk_GtkCheckboxPeer.h native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkCheckboxPeer.c Log message: 2006-06-30 Lillian Angel <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7979&r2=1.7980 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkCheckboxPeer.h?cvsroot=classpath&r1=1.11&r2=1.12 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c?cvsroot=classpath&r1=1.26&r2=1.27
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/06/30 19:54:18 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java Log message: 2006-06-30 Lillian Angel <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java (create): Changed to be non-syncronized. (setLabel): Likewise. (setCheckboxGroup): Likewise. (addToGroupMap): Likewise. Added synchronized block around code. (dispose): Changed to be non-syncronized. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7980&r2=1.7981 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.27&r2=1.28
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/06/30 20:03:05 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java Log message: 2006-06-30 Lillian Angel <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java (create): Added synchronized block around groupMap.get calls. (setCheckboxGroup): Likewise. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7981&r2=1.7982 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.28&r2=1.29
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Lillian Angel 06/07/20 14:22:39 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkCheckboxPeer.java Log message: 2006-07-20 Lillian Angel <[EMAIL PROTECTED]> PR 28440 * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java (dispose): Reset all fields. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8174&r2=1.8175 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkCheckboxPeer.java?cvsroot=classpath&r1=1.29&r2=1.30
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/sources/classpath Module name:classpath Changes by: Sven de Marothy 06/07/30 09:01:33 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkChoicePeer.java include: gnu_java_awt_peer_gtk_GtkChoicePeer.h java/awt : Choice.java native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkChoicePeer.c Log message: 2006-07-30 Sven de Marothy <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8270&r2=1.8271 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkChoicePeer.java?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkChoicePeer.h?cvsroot=classpath&r1=1.9&r2=1.10 http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Choice.java?cvsroot=classpath&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c?cvsroot=classpath&r1=1.21&r2=1.22
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/sources/classpath Module name:classpath Changes by: Sven de Marothy 06/08/03 04:31:03 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkChoicePeer.java java/awt : Choice.java Log message: 2006-08-02 Sven de Marothy <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkChoicePeer.java (remove): Force event on removing item 0 when it's selected. (handleEvent): Always call Choice.selected(). * java/awt/Choice.java: (remove): Simplify and correct. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8304&r2=1.8305 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkChoicePeer.java?cvsroot=classpath&r1=1.26&r2=1.27 http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Choice.java?cvsroot=classpath&r1=1.29&r2=1.30
[commit-cp] classpath ChangeLog gnu/java/awt/peer/gtk/GtkCh...
CVSROOT:/sources/classpath Module name:classpath Changes by: Sven de Marothy 06/08/08 22:23:36 Modified files: . : ChangeLog gnu/java/awt/peer/gtk: GtkChoicePeer.java GtkComponentPeer.java GtkToolkit.java GtkWindowPeer.java include: gnu_java_awt_peer_gtk_GtkToolkit.h native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkToolkit.c Added files: gnu/java/awt/peer/gtk: GtkMainThread.java Log message: 2006-08-09 Sven de Marothy <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8346&r2=1.8347 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkChoicePeer.java?cvsroot=classpath&r1=1.27&r2=1.28 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java?cvsroot=classpath&r1=1.120&r2=1.121 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkToolkit.java?cvsroot=classpath&r1=1.92&r2=1.93 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkWindowPeer.java?cvsroot=classpath&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkMainThread.java?cvsroot=classpath&rev=1.15 http://cvs.savannah.gnu.org/viewcvs/classpath/include/gnu_java_awt_peer_gtk_GtkToolkit.h?cvsroot=classpath&r1=1.12&r2=1.13 http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c?cvsroot=classpath&r1=1.28&r2=1.29