GNOME Bugzilla – Bug 735949
Broken use of gdata_documents_service_get_primary_authorization_domain
Last modified: 2014-09-09 16:27:41 UTC
I can click as much as I want, but it doesn't open them. On right clicking, a button that says "Open in Google documents" turns up in the bottom panel and this opens the document in FF, but otherwise, documents itself doesn't open a preview or anything. Is this expected behaviour? I thought I'd used documents to view my google documents before. Not sure though, been a long time since I tried to access anything on google drive without a browser. gnome-documents-3.13.4-3.fc21.x86_64
Any errors on the command-line?
(In reply to comment #1) > Any errors on the command-line? Yes. These come up every time I click on a google document to view it: (gnome-documents:32354): Gjs-WARNING **: JS ERROR: TypeError: service.get_primary_authorization_domain is not a function GoogleDocument<._createGDataEntry@/usr/share/gnome-documents/js/documents.js:767 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 GoogleDocument<.load@/usr/share/gnome-documents/js/documents.js:787 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 DocumentManager<.setActiveItem@/usr/share/gnome-documents/js/documents.js:1271 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 BaseManager<.setActiveItemById@/usr/share/gnome-documents/js/manager.js:92 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 ViewContainer<._onItemActivated@/usr/share/gnome-documents/js/view.js:339 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 start@/usr/share/gnome-documents/js/main.js:30 @<command line>:1
gnome-documents-3.13.91-3.fc21.x86_64 gjs-1.41.91-1.fc21.x86_64
Which version of libgdata is that? And don't forget to remove the NEEDINFO when you answer questions...
libgdata-0.15.2-2.fc21.x86_64
Looks like our use of gdata_documents_service_get_primary_authorization_domain API was broken all these years. The C API is like this: GDataAuthorizationDomain * gdata_documents_service_get_primary_authorization_domain (void); But our use assumes something like: GDataAuthorizationDomain * gdata_documents_service_get_primary_authorization_domain (GDataDocumentsService *service); It is likely that the gjs/g-i stack became stricter in this regard.
Created attachment 285742 [details] [review] Fix use of gdata_documents_service_get_primary_authorization_domain
Review of attachment 285742 [details] [review]: Thanks Debarshi, looks good to me.
Comment on attachment 285742 [details] [review] Fix use of gdata_documents_service_get_primary_authorization_domain Thanks for the review, Cosimo!