[gui][PATCH] Fix text positioning on Labels
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Oct 13 18:53:00 GMT 2004
Hi,
I committed this to java-gui-branch. GtkLabels' size requests were not
being reset upon revalidation because they are now packed inside a
GtkEventBox. This was causing labels to be off-centre when they were
re-added to an already-visible top-level container. This patch fixes
the problem.
Tom
2004-10-13 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkButtonPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
(setNativeBounds): Set GtkEventBox, GtkButton and GtkLabel size
requests.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(setNativeBounds): Make package private. Set size request even
if GTK parent is NULL.
* gnu/java/awt/peer/gtk/GtkLabelPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
(setNativeBounds): Set GtkEventBox and GtkLabel size requests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peer-label-text-fixes.patch
Type: text/x-patch
Size: 6608 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041013/df9876c4/attachment.bin>
More information about the Java-patches
mailing list