[gnome-books/wip/hadess/gnome-books: 7/8] Remove help



commit f6d6406b7a7ef4f544eaf7d95d911fd4e3ce11a8
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 5419e1d9..f008ba51 100644
--- a/src/application.js
+++ b/src/application.js
@@ -139,16 +139,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()));
@@ -214,9 +204,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]