GNOME Bugzilla – Bug 727267
Can't open contents and bookmarks dialog
Last modified: 2014-03-31 17:14:20 UTC
With the latest Gnome Documents I can't open contents and bookmarks dialog anymore. Clicking on button in navigation bar that should open the contents dialog has no effect. Clicking the bookmarks button only toggles its selection state, but does nothing else.
When I click on the button that should open the contents dialog, the following is output to the terminal: (gnome-documents:4580): Gjs-WARNING **: JS ERROR: TypeError: GjsPrivate.gtk_container_child_set_property is not a function _init/Gtk.Container.prototype.child_set_property@resource:///org/gnome/gjs/modules/overrides/Gtk.js:11 PlacesDialog<._addPage@/opt/gnome/share/gnome-documents/js/places.js:115 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 PlacesDialog<._createWindow@/opt/gnome/share/gnome-documents/js/places.js:72 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 PlacesDialog<._init@/opt/gnome/share/gnome-documents/js/places.js:41 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 PreviewView<._showPlaces@/opt/gnome/share/gnome-documents/js/preview.js:207 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 start@/opt/gnome/share/gnome-documents/js/main.js:29 @<command line>:1 When I click on button that should open bookmarks dialog, nothing is output to the terminal.
*** Bug 726068 has been marked as a duplicate of this bug. ***
Created attachment 273330 [details] [review] places: Use GtkStack, not GtkContainer API to add the pages I have no idea why this broke in the first place, but this looks like a better way to do the same thing anyway. I remember testing this when working on bug 726343 so something broke relatively recently. Going back to gtk+-3.11.8 has not helped.
Maybe because of bug 721838 ? I don't know.
Either way, this is definitely a regression. I can reproduce it in a Continuous image that I grabbed on 24th March.
I think this is happening because after bug 721838, gjs will install the GTK override even in case it's not compiled with --enable-gtk=yes. I'll open a follow-up bug against gjs for that.
Review of attachment 273330 [details] [review]: This looks OK in any case.
Comment on attachment 273330 [details] [review] places: Use GtkStack, not GtkContainer API to add the pages Thanks for the review!