diff options
Diffstat (limited to 'wikipedia/models')
-rw-r--r-- | wikipedia/models/category_model.js | 3 | ||||
-rw-r--r-- | wikipedia/models/domain_wiki_model.js | 14 |
2 files changed, 3 insertions, 14 deletions
diff --git a/wikipedia/models/category_model.js b/wikipedia/models/category_model.js index 1c981bc..8a1c1ff 100644 --- a/wikipedia/models/category_model.js +++ b/wikipedia/models/category_model.js @@ -21,6 +21,9 @@ const CategoryModel = new Lang.Class({ 'image-thumbnail-uri': GObject.ParamSpec.string('image-thumbnail-uri', 'Category Thumbnail Image URI', 'Path to thumbnail image for this category in the GResource', GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT, ""), + 'is-main-category': GObject.ParamSpec.boolean('is-main-category', 'Is Main Category boolean', 'Flag denoting whether this category is the main category for this app', + GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT, + false), }, _init: function(params) { diff --git a/wikipedia/models/domain_wiki_model.js b/wikipedia/models/domain_wiki_model.js index 87941ba..a387ff9 100644 --- a/wikipedia/models/domain_wiki_model.js +++ b/wikipedia/models/domain_wiki_model.js @@ -12,20 +12,6 @@ const DomainWikiModel = new Lang.Class({ Name: "DomainWikiModel", Extends: GObject.Object, - Properties: { - 'image-uri': GObject.ParamSpec.string('image-uri', - 'Application image URI', - 'URI describing a path to the image for this application.', - GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE | GObject.ParamFlags.CONSTRUCT_ONLY, - ''), - - // Name of the Wikipedia-based application, e.g. 'Brazil', 'Math' - 'application-name': GObject.ParamSpec.string('application-name', - 'Application name', - 'Name of the Wikipedia-based application', - GObject.ParamFlags.READABLE, - '') - }, //params should have the image-uri for the app's image, and the application name. _init: function(params) { |