Commit f0f65094 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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.
parent 03a7c455
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.
......
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.
......
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.
......
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.
......
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.
......
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.
......
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.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment