Add bindings for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)

2005-09-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.c (gtk_entry_class_init):
	* gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
	for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
This commit is contained in:
Matthias Clasen 2005-09-02 18:23:10 +00:00 committed by Matthias Clasen
parent 4083637a11
commit ade8ec4c4e
4 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_class_init):
* gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)
* gtk/gtkimcontextsimple.c: Rework the Unicode hex input
code. Now we only steal a single key combination, Ctrl-Shift-U,
instead of sixteen.

View File

@ -1,5 +1,9 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_class_init):
* gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
for Ctrl-Shift-A to unselect all. (#309301, Kathy Fernandes)
* gtk/gtkimcontextsimple.c: Rework the Unicode hex input
code. Now we only steal a single key combination, Ctrl-Shift-U,
instead of sixteen.

View File

@ -782,6 +782,11 @@ gtk_entry_class_init (GtkEntryClass *class)
GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_VISUAL_POSITIONS,
G_TYPE_INT, 0,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set, GDK_a, GDK_SHIFT_MASK | GDK_CONTROL_MASK,
"move_cursor", 3,
GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_VISUAL_POSITIONS,
G_TYPE_INT, 0,
G_TYPE_BOOLEAN, FALSE);
/* Activate
*/

View File

@ -966,6 +966,10 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
"select_all", 1,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set, GDK_a, GDK_SHIFT_MASK | GDK_CONTROL_MASK,
"select_all", 1,
G_TYPE_BOOLEAN, FALSE);
/* Deleting text */
gtk_binding_entry_add_signal (binding_set, GDK_Delete, 0,
"delete_from_cursor", 2,