mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
Fix various problems when truncating the inserted text to fit into the
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems when truncating the inserted text to fit into the GtkEntry size limit of 65kb. (#73119)
This commit is contained in:
parent
72b4001ba8
commit
8ceb7aeed3
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Mar 6 00:38:29 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix various problems
|
||||
when truncating the inserted text to fit into the GtkEntry
|
||||
size limit of 65kb. (#73119)
|
||||
|
||||
Wed Mar 6 00:20:59 2002 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gtk/gtktreeviewcolumn.c
|
||||
|
@ -1862,7 +1862,12 @@ gtk_entry_real_insert_text (GtkEditable *editable,
|
||||
else
|
||||
{
|
||||
entry->text_size = MAX_SIZE;
|
||||
new_text_length = entry->text_size - entry->n_bytes - 1;
|
||||
if (new_text_length > (gint)entry->text_size - (gint)entry->n_bytes - 1)
|
||||
{
|
||||
new_text_length = (gint)entry->text_size - (gint)entry->n_bytes - 1;
|
||||
new_text_length = g_utf8_find_prev_char (new_text, new_text + new_text_length + 1) - new_text;
|
||||
n_chars = g_utf8_strlen (new_text, new_text_length);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user