[gthumb] image print: converted accelerators to customizable shortcuts



commit 04d5370c546dd3dcc2fc40aa69fe116c738f0c3e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Nov 9 18:22:40 2019 +0100

    image print: converted accelerators to customizable shortcuts

 extensions/image_print/callbacks.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/extensions/image_print/callbacks.c b/extensions/image_print/callbacks.c
index ddbc9e9a..a588543d 100644
--- a/extensions/image_print/callbacks.c
+++ b/extensions/image_print/callbacks.c
@@ -34,8 +34,8 @@ static const GActionEntry actions[] = {
 };
 
 
-static const GthAccelerator accelerators[] = {
-       { "win.print", "<control>P" }
+static const GthShortcut shortcuts[] = {
+       { "print", N_("Print"), GTH_SHORTCUT_CONTEXT_BROWSER_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_EDIT, 
"<control>P" },
 };
 
 
@@ -60,9 +60,9 @@ ip__gth_browser_construct_cb (GthBrowser *browser)
                                       "win.print",
                                       "<control>P",
                                       NULL);
-       gth_window_add_accelerators (GTH_WINDOW (browser),
-                                    accelerators,
-                                    G_N_ELEMENTS (accelerators));
+       gth_window_add_shortcuts (GTH_WINDOW (browser),
+                                 shortcuts,
+                                 G_N_ELEMENTS (shortcuts));
 }
 
 


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