[baobab] Replace a deprecated method
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Replace a deprecated method
- Date: Tue, 13 May 2014 11:56:49 +0000 (UTC)
commit d83e9c496fca33a36dcf8867262a119f838843a2
Author: Stefano Facchini <stefano facchini gmail com>
Date: Tue May 13 13:50:24 2014 +0200
Replace a deprecated method
src/baobab-application.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-application.vala b/src/baobab-application.vala
index 2751d52..7a15338 100644
--- a/src/baobab-application.vala
+++ b/src/baobab-application.vala
@@ -90,8 +90,8 @@ namespace Baobab {
var app_menu = builder.get_object ("appmenu") as MenuModel;
set_app_menu (app_menu);
- add_accelerator ("F10", "win.gear-menu", null);
- add_accelerator ("<Primary>r", "win.reload", null);
+ set_accels_for_action ("win.gear-menu", { "F10" });
+ set_accels_for_action ("win.reload", { "<Primary>r" });
}
protected override int handle_local_options (GLib.VariantDict options) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]