aboutsummaryrefslogtreecommitdiff
path: root/libjava/jni
diff options
context:
space:
mode:
authorDavid Jee <djee@redhat.com>2004-01-26 21:04:06 +0000
committerDavid Jee <djee@gcc.gnu.org>2004-01-26 21:04:06 +0000
commit81a88a6157451550a5753e436021523f93226fc9 (patch)
tree442f662276f6dbb3a94bbc6d44ea22894c7837d6 /libjava/jni
parent18874af693864a095fbf1d7ac881ac929e3a15b6 (diff)
downloadgcc-81a88a6157451550a5753e436021523f93226fc9.zip
gcc-81a88a6157451550a5753e436021523f93226fc9.tar.gz
gcc-81a88a6157451550a5753e436021523f93226fc9.tar.bz2
2004-01-26 David Jee <djee@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (find_bg_color_widget): For GtkButton, return its child. From-SVN: r76667
Diffstat (limited to 'libjava/jni')
-rw-r--r--libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
index b244fd7..1966227 100644
--- a/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
+++ b/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
@@ -621,7 +621,7 @@ find_fg_color_widget (GtkWidget *widget)
{
GtkWidget *fg_color_widget;
- if (GTK_IS_EVENT_BOX (widget))
+ if (GTK_IS_EVENT_BOX (widget) || GTK_IS_BUTTON (widget))
fg_color_widget = gtk_bin_get_child (GTK_BIN(widget));
else
fg_color_widget = widget;