use the cursor position _after_ deleting the text as the position to
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_enter_text): use the cursor position _after_ deleting the text as the position to insert at. (#72717, Jan Mynarik)
This commit is contained in:
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -1,4 +1,10 @@
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_enter_text): use
|
||||
the cursor position _after_ deleting the text
|
||||
as the position to insert at. (#72717, Jan Mynarik)
|
||||
|
||||
2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
|
||||
|
||||
* gtk/gtktreemodel.c
|
||||
misprints in documentation for gtk_tree_row_reference_inserted()
|
||||
|
@ -2280,7 +2280,7 @@ gtk_entry_enter_text (GtkEntry *entry,
|
||||
const gchar *str)
|
||||
{
|
||||
GtkEditable *editable = GTK_EDITABLE (entry);
|
||||
gint tmp_pos = entry->current_pos;
|
||||
gint tmp_pos;
|
||||
|
||||
if (gtk_editable_get_selection_bounds (editable, NULL, NULL))
|
||||
gtk_editable_delete_selection (editable);
|
||||
@ -2290,6 +2290,7 @@ gtk_entry_enter_text (GtkEntry *entry,
|
||||
gtk_entry_delete_from_cursor (entry, GTK_DELETE_CHARS, 1);
|
||||
}
|
||||
|
||||
tmp_pos = entry->current_pos;
|
||||
gtk_editable_insert_text (editable, str, strlen (str), &tmp_pos);
|
||||
gtk_editable_set_position (editable, tmp_pos);
|
||||
}
|
||||
|
Reference in New Issue
Block a user