Fixed some problems with !gtk_use_mb introduced in the last change.

Sun Mar 22 23:33:50 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
	  problems with !gtk_use_mb introduced in the last change.
This commit is contained in:
Owen Taylor 1998-03-23 04:33:59 +00:00 committed by Owen Taylor
parent 03a7c4551b
commit f0f650948a
8 changed files with 39 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1,3 +1,8 @@
Sun Mar 22 23:33:50 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkentry.c (gtk_entry_insert_text): Fixed some
problems with !gtk_use_mb introduced in the last change.
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.

View File

@ -1450,7 +1450,7 @@ gtk_entry_insert_text (GtkEditable *editable,
gint i;
gint insertion_chars;
guint16 *insertion_pos;
guint16 *insertion_pos = NULL; /* Quiet the compiler */
GtkEntry *entry;
@ -1501,6 +1501,8 @@ gtk_entry_insert_text (GtkEditable *editable,
new_text_length = i;
}
else
insertion_chars = new_text_length;
/* Make sure we are inserting at integral character position */
start_char = gtk_entry_find_char (entry, *position);
@ -1545,7 +1547,7 @@ gtk_entry_insert_text (GtkEditable *editable,
end_char = end_pos;
last_char = last_pos;
for (i = end_char ; i <= last_char ; i++)
for (i = start_char ; i <= last_char ; i++)
entry->char_pos[i] = i;
}