diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-08-30 05:39:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-30 05:39:49 +0000 |
commit | 729aaa06e9a2fd19f87bba06746e346f0d5da5d8 (patch) | |
tree | 409db5a3ee62028f93a1b215a512a0b08737f52b /gtk/gtktextview.c | |
parent | 26526ea581832a2839ff7cf8d6ba6a88bdadb974 (diff) | |
download | gdk-pixbuf-729aaa06e9a2fd19f87bba06746e346f0d5da5d8.tar.gz |
Changes to make sure input methods respect the editability of entries and
Mon Aug 30 01:34:42 2004 Matthias Clasen <maclas@gmx.de>
Changes to make sure input methods respect the editability
of entries and text views. #114173, Noah Levitt.
* gtk/gtkentry.c (popup_targets_received): Make the Input
Methods menuitem insensitive if we're not editable.
* gtk/gtkentry.c (gtk_entry_delete_surrounding_cb):
* gtk/gtkentry.c (gtk_entry_preedit_changed_cb):
* gtk/gtkentry.c (gtk_entry_commit_cb): Don't change anything
if we're not editable.
* gtk/gtkentry.c (gtk_entry_focus_out):
* gtk/gtkentry.c (gtk_entry_focus_in): Only send focus_in and
focus_out to the im context if we're editable.
* gtk/gtkentry.c (gtk_entry_set_property): Reset the im context
if the entry just became non-editable.
* gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
Use gtk_text_buffer_delete_interactive() to not delete
non-editable portions of text.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 43004c0d1..a350f8778 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6678,7 +6678,7 @@ gtk_text_view_delete_surrounding_handler (GtkIMContext *context, gtk_text_iter_forward_chars (&start, offset); gtk_text_iter_forward_chars (&end, offset + n_chars); - gtk_text_buffer_delete (text_view->buffer, &start, &end); + gtk_text_buffer_delete_interactive (text_view->buffer, &start, &end); return TRUE; } |