[gnome-documents] documents: remove obsolete hack
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: remove obsolete hack
- Date: Tue, 26 Jun 2012 17:44:58 +0000 (UTC)
commit ab702d6c79f88266506680c704fe7814e7030df5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 26 11:51:41 2012 -0400
documents: remove obsolete hack
This hack is not needed anymore, since GJS can reference GTypes just
fine now.
src/documents.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 7689cc8..f766df6 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -681,14 +681,10 @@ const GoogleDocument = new Lang.Class({
let authorizer = new Gd.GDataGoaAuthorizer({ goa_object: source.object });
let service = new GData.DocumentsService({ authorizer: authorizer });
- // HACK: GJS doesn't support introspecting GTypes, so we need to use
- // GObject.type_from_name(); but for that to work, we need at least one
- // instance of the GType in question to have ever been created. Ensure that
- let temp = new GData.DocumentsText();
service.query_single_entry_async
(service.get_primary_authorization_domain(),
this.identifier, null,
- GObject.type_from_name('GDataDocumentsText'),
+ GData.DocumentsText,
cancellable, Lang.bind(this,
function(object, res) {
let entry = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]