[glom/glom-1-26] Application: Use non-deprecated accelerators API.



commit e761708a87f842ae3cceb22a5842705b32569f92
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 8 11:25:08 2014 +0200

    Application: Use non-deprecated accelerators API.

 glom/application.cc |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glom/application.cc b/glom/application.cc
index e3cacfe..948c459 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:
-  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");
+  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");
 }
 
 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]