[gnome-books/wip/hadess/gnome-books: 7/10] Remove help
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/gnome-books: 7/10] Remove help
- Date: Fri, 25 Jan 2019 12:57:41 +0000 (UTC)
commit d291c4bbfa63d7134edf7e8128c3591cef45155a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jan 24 13:17:50 2019 +0100
Remove help
The data files were removed, so remove the menu item too.
src/application.js | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 6a5ab431..79b824c1 100644
--- a/src/application.js
+++ b/src/application.js
@@ -138,16 +138,6 @@ var Application = new Lang.Class({
this._mainWindow.showAbout();
},
- _onActionHelp: function() {
- try {
- Gtk.show_uri_on_window(this._mainWindow,
- 'help:gnome-documents',
- Gtk.get_current_event_time());
- } catch (e) {
- logError(e, 'Unable to display help');
- }
- },
-
_onActionNightMode: function(action) {
let state = action.get_state();
settings.set_value('night-mode', GLib.Variant.new('b', !state.get_boolean()));
@@ -213,9 +203,6 @@ var Application = new Lang.Class({
accels: ['<Primary>q'] },
{ name: 'about',
callback: Lang.bind(this, this._onActionAbout) },
- { name: 'help',
- callback: Lang.bind(this, this._onActionHelp),
- accels: ['F1'] },
{ name: 'night-mode',
callback: Lang.bind(this, this._onActionNightMode),
create_hook: Lang.bind(this, this._nightModeCreateHook),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]