diff options
author | David Jee <djee@redhat.com> | 2004-02-10 17:12:09 +0000 |
---|---|---|
committer | David Jee <djee@gcc.gnu.org> | 2004-02-10 17:12:09 +0000 |
commit | 49d77e22756fe0076f542dcb82cd434b54742c46 (patch) | |
tree | e28e2d51c2de43dd3d4f6ce0ea4a3ebcb08c76b1 /libjava/gnu/java/awt/peer | |
parent | 31cc6081778b66c7fc1d0e864fea5a73dcbd25c8 (diff) | |
download | gcc-49d77e22756fe0076f542dcb82cd434b54742c46.zip gcc-49d77e22756fe0076f542dcb82cd434b54742c46.tar.gz gcc-49d77e22756fe0076f542dcb82cd434b54742c46.tar.bz2 |
2004-02-10 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkButtonPeer.java
(gtkSetLabel): New native method definition.
(setLabel): Use gtkSetLabel.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(Java_gnu_java_awt_peer_gtk_GtkButtonPeer_gtkSetLabel): New method.
From-SVN: r77604
Diffstat (limited to 'libjava/gnu/java/awt/peer')
-rw-r--r-- | libjava/gnu/java/awt/peer/gtk/GtkButtonPeer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/gnu/java/awt/peer/gtk/GtkButtonPeer.java b/libjava/gnu/java/awt/peer/gtk/GtkButtonPeer.java index 9a83226..cf7260c 100644 --- a/libjava/gnu/java/awt/peer/gtk/GtkButtonPeer.java +++ b/libjava/gnu/java/awt/peer/gtk/GtkButtonPeer.java @@ -54,6 +54,7 @@ public class GtkButtonPeer extends GtkComponentPeer public native void connectSignals (); native void gtkSetFont(String name, int style, int size); + native void gtkSetLabel(String label); native void gtkWidgetSetForeground (int red, int green, int blue); public GtkButtonPeer (Button b) @@ -63,7 +64,7 @@ public class GtkButtonPeer extends GtkComponentPeer public void setLabel (String label) { - set ("label", label); + gtkSetLabel(label); } public void handleEvent (AWTEvent e) |