diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2003-10-30 01:49:39 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2003-10-30 01:49:39 +0000 |
commit | 12d104a2b9c2bcb0e85cd0289dc7616422d55753 (patch) | |
tree | 61ff9f7fd9a51b4c139a8b9531b95b2ca5c85d3a /libjava/jni | |
parent | 3b6c3bb05d6fdc2048a2bcadde2a1ff63be8d7eb (diff) | |
download | gcc-12d104a2b9c2bcb0e85cd0289dc7616422d55753.zip gcc-12d104a2b9c2bcb0e85cd0289dc7616422d55753.tar.gz gcc-12d104a2b9c2bcb0e85cd0289dc7616422d55753.tar.bz2 |
gnu_java_awt_peer_gtk_GtkListPeer.c (getSize): Return scrolled window's size request.
2003-10-29 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (getSize): Return
scrolled window's size request.
From-SVN: r73075
Diffstat (limited to 'libjava/jni')
-rw-r--r-- | libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c index 944bc21..6c37aeb 100644 --- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c +++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c @@ -228,7 +228,6 @@ Java_gnu_java_awt_peer_gtk_GtkListPeer_deselect gdk_threads_leave (); } -/* FIXME: magic mojo (that doesn't seem to do anything) */ JNIEXPORT void JNICALL Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize (JNIEnv *env, jobject obj, jint rows, jintArray jdims) @@ -251,7 +250,7 @@ Java_gnu_java_awt_peer_gtk_GtkListPeer_getSize list = GTK_WIDGET (CLIST_FROM_SW (ptr)); sw = GTK_SCROLLED_WINDOW (ptr); - gtk_widget_size_request(list, &myreq); + gtk_widget_size_request(GTK_WIDGET(sw), &myreq); dims[1]=myreq.height; dims[0]=myreq.width; |