[gnome-books/wip/hadess/remove-documents-ui: 3/3] js: Remove some references to non-Books app IDs



commit a62ff5fe5c09e0e397b5b48049bb6c3a54d8b7a7
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 2 12:38:35 2019 +0200

    js: Remove some references to non-Books app IDs
    
    We only implement a single application in our sources now.

 src/main.js        | 2 +-
 src/mainToolbar.js | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 9bfaaf6e..57f62019 100644
--- a/src/main.js
+++ b/src/main.js
@@ -41,6 +41,6 @@ const Application = imports.application;
 const GLib = imports.gi.GLib;
 
 function main(args) {
-    let application = new Application.Application(pkg.name == 'org.gnome.Books');
+    let application = new Application.Application();
     return application.run(args);
 }
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 53fc6c01..2d291f86 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -87,15 +87,9 @@ var MainToolbar = new Lang.Class({
     },
 
     addMenuButton: function() {
-      let path = null;
       let model_name = null;
-      if (pkg.name == 'org.gnome.Books') {
-        path = "/org/gnome/Documents/ui/books-app-menu.ui";
-      } else {
-        path = "/org/gnome/Documents/ui/documents-app-menu.ui";
-      }
 
-      let builder = Gtk.Builder.new_from_resource(path);
+      let builder = Gtk.Builder.new_from_resource("/org/gnome/Documents/ui/books-app-menu.ui");
       let model = builder.get_object('app-menu');
       let menuButton = new Gtk.MenuButton({ image: new Gtk.Image ({ icon_name: 'open-menu-symbolic' }),
                                             tooltip_text: Gettext.pgettext("menu button tooltip", "Menu"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]