[gnome-books/wip/hadess/gnome-books: 2/5] Remove help



commit 4f16d0ddca841d7f5b488635f7b23626b99ee176
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]