diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-06-13 22:06:06 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-06-13 22:06:06 +0000 |
commit | 816769394d56cc8e987721d1939e7d3cb2911e68 (patch) | |
tree | 2a7844a980fa748f79fead08831084a5280be512 /gtk | |
parent | ba2bd5533ea7b4847464e5f86cb2eab3d3200df8 (diff) | |
download | gdk-pixbuf-816769394d56cc8e987721d1939e7d3cb2911e68.tar.gz |
Add the obsolete CUA cut/copy/paste bindings. (#79078)
Thu Jun 13 17:50:36 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c gtk/gtkentry.c: Add the obsolete
CUA cut/copy/paste bindings. (#79078)
* gtk/gtktextview.c gtk/gtkentry.c: Make <Shift>BackSpace
a synonym for for Backspace. (#80302, Jeff Waugh)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkentry.c | 15 | ||||
-rw-r--r-- | gtk/gtktextview.c | 15 |
2 files changed, 26 insertions, 4 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 1dac47798..d8d6f7a65 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -692,6 +692,12 @@ gtk_entry_class_init (GtkEntryClass *class) GTK_TYPE_ENUM, GTK_DELETE_CHARS, GTK_TYPE_INT, -1); + /* Make this do the same as Backspace, to help with mis-typing */ + gtk_binding_entry_add_signal (binding_set, GDK_BackSpace, GDK_SHIFT_MASK, + "delete_from_cursor", 2, + GTK_TYPE_ENUM, GTK_DELETE_CHARS, + GTK_TYPE_INT, -1); + gtk_binding_entry_add_signal (binding_set, GDK_Delete, GDK_CONTROL_MASK, "delete_from_cursor", 2, GTK_TYPE_ENUM, GTK_DELETE_WORD_ENDS, @@ -711,13 +717,18 @@ gtk_entry_class_init (GtkEntryClass *class) gtk_binding_entry_add_signal (binding_set, GDK_x, GDK_CONTROL_MASK, "cut_clipboard", 0); - gtk_binding_entry_add_signal (binding_set, GDK_c, GDK_CONTROL_MASK, "copy_clipboard", 0); - gtk_binding_entry_add_signal (binding_set, GDK_v, GDK_CONTROL_MASK, "paste_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Delete, GDK_SHIFT_MASK, + "cut_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Insert, GDK_CONTROL_MASK, + "copy_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Insert, GDK_SHIFT_MASK, + "paste_clipboard", 0); + /* Overwrite */ gtk_binding_entry_add_signal (binding_set, GDK_Insert, 0, "toggle_overwrite", 0); diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 9447d7f64..4a8c69f52 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -897,6 +897,12 @@ gtk_text_view_class_init (GtkTextViewClass *klass) GTK_TYPE_ENUM, GTK_DELETE_CHARS, GTK_TYPE_INT, -1); + /* Make this do the same as Backspace, to help with mis-typing */ + gtk_binding_entry_add_signal (binding_set, GDK_BackSpace, GDK_SHIFT_MASK, + "delete_from_cursor", 2, + GTK_TYPE_ENUM, GTK_DELETE_CHARS, + GTK_TYPE_INT, -1); + gtk_binding_entry_add_signal (binding_set, GDK_Delete, GDK_CONTROL_MASK, "delete_from_cursor", 2, GTK_TYPE_ENUM, GTK_DELETE_WORD_ENDS, @@ -916,13 +922,18 @@ gtk_text_view_class_init (GtkTextViewClass *klass) gtk_binding_entry_add_signal (binding_set, GDK_x, GDK_CONTROL_MASK, "cut_clipboard", 0); - gtk_binding_entry_add_signal (binding_set, GDK_c, GDK_CONTROL_MASK, "copy_clipboard", 0); - gtk_binding_entry_add_signal (binding_set, GDK_v, GDK_CONTROL_MASK, "paste_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Delete, GDK_SHIFT_MASK, + "cut_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Insert, GDK_CONTROL_MASK, + "copy_clipboard", 0); + gtk_binding_entry_add_signal (binding_set, GDK_Insert, GDK_SHIFT_MASK, + "paste_clipboard", 0); + /* Overwrite */ gtk_binding_entry_add_signal (binding_set, GDK_Insert, 0, "toggle_overwrite", 0); |