[bijiben/popover] EditorToolbar: add back accels



commit 9fb74a06b4561536a484ff1ecfeeeb1d705b544a
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Sat Mar 29 12:27:35 2014 +0100

    EditorToolbar: add back accels
    
    accelerator now makes button emits "clicked" signal

 src/bjb-editor-toolbar.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/bjb-editor-toolbar.c b/src/bjb-editor-toolbar.c
index dcc8779..b7e66b2 100644
--- a/src/bjb-editor-toolbar.c
+++ b/src/bjb-editor-toolbar.c
@@ -62,7 +62,7 @@ struct _BjbEditorToolbarPrivate
 
   /* Do not use toggle buttons. uggly there.
    * Paste : the user might want to paste overriding selected text.
-   * Other : when no selection the user won't try to bold "null".*/
+  // * Other : when no selection the user won't try to bold "null".*/
   GtkToolItem        *group;
   GtkWidget          *box;
   GtkWidget          *toolbar_cut;
@@ -452,21 +452,21 @@ bjb_editor_toolbar_constructed (GObject *obj)
 
   g_signal_connect (priv->toolbar_bold,"clicked",
                     G_CALLBACK(bold_button_callback), self);
-/*  gtk_widget_add_accelerator (priv->toolbar_bold,
-                              "activate", priv->accel, GDK_KEY_b,
-                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);*/
+  gtk_widget_add_accelerator (priv->toolbar_bold,
+                              "clicked", priv->accel, GDK_KEY_b,
+                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
 
   g_signal_connect (priv->toolbar_italic,"clicked",
                     G_CALLBACK(italic_button_callback), self);
-/*  gtk_widget_add_accelerator (priv->toolbar_italic,
-                              "activate", priv->accel, GDK_KEY_i,
-                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);*/
+  gtk_widget_add_accelerator (priv->toolbar_italic,
+                              "clicked", priv->accel, GDK_KEY_i,
+                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
 
   g_signal_connect (priv->toolbar_strike,"clicked",
                     G_CALLBACK(strike_button_callback), self);
-/*  gtk_widget_add_accelerator (priv->toolbar_strike,
-                              "activate", priv->accel, GDK_KEY_s,
-                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);*/
+  gtk_widget_add_accelerator (priv->toolbar_strike,
+                              "clicked", priv->accel, GDK_KEY_s,
+                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
 
   g_signal_connect (priv->toolbar_link,"clicked",
                     G_CALLBACK(link_callback), self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]