mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 09:20:42 +08:00
2003-12-08 Olga Rodimina <rodimina@redhat.com>
* java/awt/Polygon.java (translate): Fixed error that caused polygon to move right/left when up/down translation was required. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c: (getSelectionStart): Initialized start position to 0. (getSelectionEnd): Initialized end position to 0. (getCaretPosition): Initialized caret position to 0. (getText): Initialized selected text to NULL From-SVN: r74445
This commit is contained in:
parent
367d6d0bd7
commit
1616b0d5f9
@ -1,3 +1,14 @@
|
||||
2003-12-08 Olga Rodimina <rodimina@redhat.com>
|
||||
|
||||
* java/awt/Polygon.java
|
||||
(translate): Fixed error that caused polygon
|
||||
to move right/left when up/down translation was required.
|
||||
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c:
|
||||
(getSelectionStart): Initialized start position to 0.
|
||||
(getSelectionEnd): Initialized end position to 0.
|
||||
(getCaretPosition): Initialized caret position to 0.
|
||||
(getText): Initialized selected text to NULL
|
||||
|
||||
2003-12-08 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
Fix for PR libgcj/13176.
|
||||
|
@ -185,7 +185,7 @@ public class Polygon implements Shape, Serializable
|
||||
while (--i >= 0)
|
||||
{
|
||||
xpoints[i] += dx;
|
||||
xpoints[i] += dy;
|
||||
ypoints[i] += dy;
|
||||
}
|
||||
if (bounds != null)
|
||||
{
|
||||
|
@ -101,7 +101,7 @@ Java_gnu_java_awt_peer_gtk_GtkTextComponentPeer_getCaretPosition
|
||||
(JNIEnv *env, jobject obj)
|
||||
{
|
||||
void *ptr;
|
||||
int pos;
|
||||
int pos = 0;
|
||||
GtkEditable *editable; // type of GtkEntry (TextField)
|
||||
GtkWidget *text = NULL; // type of GtkTextView (TextArea)
|
||||
GtkTextBuffer *buf;
|
||||
@ -187,7 +187,7 @@ Java_gnu_java_awt_peer_gtk_GtkTextComponentPeer_getSelectionStart
|
||||
(JNIEnv *env, jobject obj)
|
||||
{
|
||||
void *ptr;
|
||||
int pos;
|
||||
int pos = 0;
|
||||
GtkEditable *editable; // type of GtkEntry (TextField)
|
||||
GtkWidget *text = NULL; // type of GtkTextView (TextArea)
|
||||
GtkTextBuffer *buf;
|
||||
@ -244,7 +244,7 @@ Java_gnu_java_awt_peer_gtk_GtkTextComponentPeer_getSelectionEnd
|
||||
(JNIEnv *env, jobject obj)
|
||||
{
|
||||
void *ptr;
|
||||
int pos;
|
||||
int pos = 0;
|
||||
GtkEditable *editable; // type of GtkEntry (TextField)
|
||||
GtkWidget *text = NULL; // type of GtkTextView (TextArea)
|
||||
GtkTextBuffer *buf;
|
||||
@ -384,7 +384,7 @@ Java_gnu_java_awt_peer_gtk_GtkTextComponentPeer_getText
|
||||
(JNIEnv *env, jobject obj)
|
||||
{
|
||||
void *ptr;
|
||||
char *contents;
|
||||
char *contents = NULL;
|
||||
jstring jcontents;
|
||||
GtkEditable *editable; // type of GtkEntry (TextField)
|
||||
GtkWidget *text = NULL; // type of GtkTextView (TextArea)
|
||||
|
Loading…
x
Reference in New Issue
Block a user