[gtk+] Make Ctrl-u and Ctrl-k work in GtkTextView too
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make Ctrl-u and Ctrl-k work in GtkTextView too
- Date: Fri, 26 Sep 2014 21:53:49 +0000 (UTC)
commit 5744bb3cf16cabfe4ee4677c7250ee8f90550a37
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 26 17:53:07 2014 -0400
Make Ctrl-u and Ctrl-k work in GtkTextView too
It doesn't make sense to have them work in entries, but not here.
gtk/gtktextview.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 59dcf76..bd1913d 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1429,6 +1429,15 @@ G_GNUC_END_IGNORE_DEPRECATIONS
G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
G_TYPE_INT, -1);
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_u, GDK_CONTROL_MASK,
+ "delete-from-cursor", 2,
+ G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
+ G_TYPE_INT, -1);
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_k, GDK_CONTROL_MASK,
+ "delete-from-cursor", 2,
+ G_TYPE_ENUM, GTK_DELETE_PARAGRAPH_ENDS,
+ G_TYPE_INT, 1);
+
/* Cut/copy/paste */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_x, GDK_CONTROL_MASK,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]