mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 11:09:22 +08:00
2004-03-20 Mark Wielaard <mark@klomp.org>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth): Don't access ws when it is null. (Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight): Likewise. From-SVN: r79708
This commit is contained in:
parent
b121dcb5a8
commit
edb3d42631
@ -1,3 +1,11 @@
|
||||
2004-03-20 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
|
||||
(Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth):
|
||||
Don't access ws when it is null.
|
||||
(Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight):
|
||||
Likewise.
|
||||
|
||||
2004-03-19 Jeroen Frijters <jeroen@frijters.net>
|
||||
|
||||
* java/lang/ThreadGroup.java (list): Changed print to println.
|
||||
|
@ -188,9 +188,12 @@ Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getHScrollbarHeight
|
||||
gdk_threads_enter ();
|
||||
sw = GTK_SCROLLED_WINDOW (ptr);
|
||||
|
||||
gtk_widget_size_request (sw->hscrollbar, &requisition);
|
||||
gtk_widget_style_get (GTK_WIDGET (sw), "scrollbar_spacing", &spacing, NULL);
|
||||
height = requisition.height + spacing;
|
||||
if (sw)
|
||||
{
|
||||
gtk_widget_size_request (sw->hscrollbar, &requisition);
|
||||
gtk_widget_style_get (GTK_WIDGET (sw), "scrollbar_spacing", &spacing, NULL);
|
||||
height = requisition.height + spacing;
|
||||
}
|
||||
|
||||
gdk_threads_leave ();
|
||||
|
||||
@ -212,9 +215,12 @@ Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_getVScrollbarWidth
|
||||
gdk_threads_enter ();
|
||||
sw = GTK_SCROLLED_WINDOW (ptr);
|
||||
|
||||
gtk_widget_size_request (sw->vscrollbar, &requisition);
|
||||
gtk_widget_style_get (GTK_WIDGET (sw), "scrollbar_spacing", &spacing, NULL);
|
||||
width = requisition.width + spacing;
|
||||
if (sw)
|
||||
{
|
||||
gtk_widget_size_request (sw->vscrollbar, &requisition);
|
||||
gtk_widget_style_get (GTK_WIDGET (sw), "scrollbar_spacing", &spacing, NULL);
|
||||
width = requisition.width + spacing;
|
||||
}
|
||||
|
||||
gdk_threads_leave ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user