[gedit-plugins] findinfiles: don't use {add, remove}_accelerator() (deprecated)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] findinfiles: don't use {add, remove}_accelerator() (deprecated)
- Date: Sun, 11 Oct 2015 13:27:39 +0000 (UTC)
commit b820ea080ef18c7416eea08d01435073c45721c6
Author: LemonBoy <thatlemon gmail com>
Date: Sat Oct 10 16:52:36 2015 +0200
findinfiles: don't use {add,remove}_accelerator() (deprecated)
https://bugzilla.gnome.org/show_bug.cgi?id=756348
plugins/findinfiles/plugin.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/findinfiles/plugin.vala b/plugins/findinfiles/plugin.vala
index 6863e1d..f8ecdfb 100644
--- a/plugins/findinfiles/plugin.vala
+++ b/plugins/findinfiles/plugin.vala
@@ -159,13 +159,15 @@ public class App : GLib.Object, Gedit.AppActivatable {
var item = new GLib.MenuItem (_("Find in Files…"), "win.find-in-files");
menu_ext.append_menu_item (item);
- app.add_accelerator ("<Shift><Ctrl>f", "win.find-in-files", null);
+ const string accels[] = { "<Shift><Ctrl>f" };
+ app.set_accels_for_action ("win.find-in-files", accels);
}
public void deactivate () {
menu_ext.remove_items ();
- app.remove_accelerator ("win.find-in-files", null);
+ const string accels[] = { };
+ app.set_accels_for_action ("win.find-in-files", accels);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]