[gnome-books/wip/hadess/remove-documents-ui: 2/2] js: Remove some references to non-Books app IDs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/remove-documents-ui: 2/2] js: Remove some references to non-Books app IDs
- Date: Fri, 2 Aug 2019 10:39:36 +0000 (UTC)
commit 7c5f6e42f1dca1b4c02dd028a0213c6cd6f91b5e
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]