Commit 04d5370c authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

image print: converted accelerators to customizable shortcuts

parent 1329bdbe
...@@ -34,8 +34,8 @@ static const GActionEntry actions[] = { ...@@ -34,8 +34,8 @@ static const GActionEntry actions[] = {
}; };
static const GthAccelerator accelerators[] = { static const GthShortcut shortcuts[] = {
{ "win.print", "<control>P" } { "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) ...@@ -60,9 +60,9 @@ ip__gth_browser_construct_cb (GthBrowser *browser)
"win.print", "win.print",
"<control>P", "<control>P",
NULL); NULL);
gth_window_add_accelerators (GTH_WINDOW (browser), gth_window_add_shortcuts (GTH_WINDOW (browser),
accelerators, shortcuts,
G_N_ELEMENTS (accelerators)); G_N_ELEMENTS (shortcuts));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment