mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 06:44:27 +08:00
gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if TextArea has horizontal scroll bars.
2003-12-01 Kim Ho <kho@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if TextArea has horizontal scroll bars. From-SVN: r74141
This commit is contained in:
parent
2704382914
commit
85fa3bdee4
@ -1,3 +1,8 @@
|
||||
2003-12-01 Kim Ho <kho@redhat.com>
|
||||
|
||||
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
|
||||
Disable wrapping if TextArea has horizontal scroll bars.
|
||||
|
||||
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* gtktextareapeer.c -- Native implementation of GtkTextAreaPeer
|
||||
Copyright (C) 1998, 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@ -64,7 +64,10 @@ Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create
|
||||
|| scroll == AWT_TEXTAREA_SCROLLBARS_VERTICAL_ONLY) ?
|
||||
GTK_POLICY_ALWAYS : GTK_POLICY_NEVER);
|
||||
|
||||
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW(text), GTK_WRAP_WORD);
|
||||
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (text),
|
||||
(scroll == AWT_TEXTAREA_SCROLLBARS_BOTH
|
||||
|| scroll == AWT_TEXTAREA_SCROLLBARS_HORIZONTAL_ONLY)
|
||||
? GTK_WRAP_NONE : GTK_WRAP_WORD);
|
||||
|
||||
gdk_threads_leave ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user