Small fix

2006-03-10  Lillian Angel  <[EMAIL PROTECTED]>

        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
        (nativeSetCheckboxGroup): No need to use new function here.
        Should just pass in pointer.



On Fri, 2006-03-10 at 10:28 -0500, Lillian Angel wrote:
> This fixes the painting of checkboxes.
> 
> 2006-03-10  Lillian Angel  <[EMAIL PROTECTED]>
> 
>         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
>         (create): Put checkbox widget into an event box so it paints 
>       properly.
>         (connectSignals): Fixed to use new function.
>         (nativeSetCheckboxGroup): Likewise.
>         (gtkToggleButtonSetActive): Likewise.
>         (gtkWidgetModifyFont): Likewise.
>         (gtkButtonSetLabel): Likewise.
>         (combobox_get_widget): New function.
> 
Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
===================================================================
RCS file: /sources/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,v
retrieving revision 1.23
diff -u -r1.23 gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c	10 Mar 2006 15:27:27 -0000	1.23
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c	10 Mar 2006 19:52:26 -0000
@@ -127,18 +127,16 @@
 {
   GtkRadioButton *button;
   void *native_group, *ptr;
-  GtkWidget *bin;
 
   gdk_threads_enter ();
 
   ptr = NSA_GET_PTR (env, obj);
-  bin = combobox_get_widget (GTK_WIDGET (ptr));
   
   /* FIXME: we can't yet switch between a checkbutton and a
      radiobutton.  However, AWT requires this.  For now we just
      crash.  */
 
-  button = GTK_RADIO_BUTTON (bin);
+  button = GTK_RADIO_BUTTON (ptr);
 
   native_group = NSA_GET_PTR (env, group);
   if (native_group == NULL)

Reply via email to