[bijiben] Add Control+n and Control+suppr shortcuts.
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Add Control+n and Control+suppr shortcuts.
- Date: Tue, 26 Aug 2014 20:34:45 +0000 (UTC)
commit 315a6e8f8b063c9d0c62210aa86a6be27f797288
Author: Pierre-Yves Luyten <py luyten fr>
Date: Tue Aug 26 22:34:30 2014 +0200
Add Control+n and Control+suppr shortcuts.
src/bjb-main-toolbar.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index 1dc0543..5b1ced2 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -440,7 +440,8 @@ populate_bar_for_standard(BjbMainToolbar *self)
gtk_header_bar_pack_start (GTK_HEADER_BAR (self), priv->new);
gtk_widget_set_size_request (priv->new, 70, -1);
-
+ gtk_widget_add_accelerator (priv->new, "clicked", priv->accel, GDK_KEY_n,
+ GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
g_signal_connect(priv->new,"clicked",
G_CALLBACK(on_new_note_clicked),priv->parent);
}
@@ -838,6 +839,9 @@ bjb_note_menu_new (BjbMainToolbar *self)
/* Delete Note */
item = gtk_menu_item_new_with_label(_("Move to Trash"));
gtk_menu_shell_append(GTK_MENU_SHELL(result),item);
+ gtk_widget_add_accelerator (item, "activate", priv->accel,
+ GDK_KEY_Delete, GDK_CONTROL_MASK,
+ GTK_ACCEL_VISIBLE);
g_signal_connect(item,"activate",
G_CALLBACK(trash_item_callback),self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]