[glom/glom-1-26] Revert "Application: Use non-deprecated accelerators API."
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-26] Revert "Application: Use non-deprecated accelerators API."
- Date: Sun, 27 Apr 2014 13:51:58 +0000 (UTC)
commit 7b03fb242d53bfb7d9ca62d83d9621ba72b5ffc1
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Apr 27 15:51:41 2014 +0200
Revert "Application: Use non-deprecated accelerators API."
This reverts commit c772fb4da5c0f8de44361d989febb8f1a3a06e40.
This was not meant to be in this branch.
glom/application.cc | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glom/application.cc b/glom/application.cc
index 948c459..e3cacfe 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -96,14 +96,14 @@ void Application::on_startup()
//See https://bugzilla.gnome.org/show_bug.cgi?id=708905
//From window_main.glade:
- set_accel_for_action("file.new", "<Primary>n");
- set_accel_for_action("file.open", "<Primary>o");
- set_accel_for_action("win.close", "<Primary>w");
- set_accel_for_action("win.print", "<Primary>p"); //Not in the main window, but in the Relationships
Overview window, and maybe others.
- set_accel_for_action("win.print-preview", "<Shift><Primary>p"); //Not in the main window, but in the Print
Layout window, and maybe others.
- set_accel_for_action("edit.copy", "<Primary>c");
- set_accel_for_action("edit.paste", "<Primary>v");
- set_accel_for_action("edit.find", "<Primary>f");
+ add_accelerator("<Primary>n", "file.new");
+ add_accelerator("<Primary>o", "file.open");
+ add_accelerator("<Primary>w", "win.close");
+ add_accelerator("<Primary>p", "win.print"); //Not in the main window, but in the Relationships Overview
window, and maybe others.
+ add_accelerator("<Shift><Primary>p", "win.print-preview"); //Not in the main window, but in the Print
Layout window, and maybe others.
+ add_accelerator("<Primary>c", "edit.copy");
+ add_accelerator("<Primary>v", "edit.paste");
+ add_accelerator("<Primary>f", "edit.find");
}
void Application::on_open(const Gio::Application::type_vec_files& files,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]