GNOME Bugzilla – Bug 536363
html_view_set_magnification() doesn't work
Last modified: 2012-03-31 19:01:24 UTC
Originally from http://bugs.debian.org/482556. It appears as if the internal GIMP help browser saves its display settings (window size, zoom, etc.) on exit, but this never actually happens, presumably because dialog_unmap() never gets called.
dialog_unmap() is definitely called and the settings are saved. It's just that html_view_set_magnification() doesn't appear to work. What makes you think that dialog_unmap() would not be called?
Just that there didn't appear to be helpbrowser settings saved in ~/.gimp-2.4, but I could have overlooked something. I guess this is really just a gtkhtml bug then.
The settings are remembered per GIMP session only. They are not meant to be saved anywhere. We should reassign this bug report to gtkhtml2 though. It appears that html_view_set_magnification() is broken.
The help-browser uses the following code to set up the browser dialog: GtkWidget *html; html = html_view_new (); html_view_set_magnification (HTML_VIEW (html), zoom); html_view_set_document (HTML_VIEW (html), html_document_new ()); The document is then loaded asynchronously. I have added debug output and the zoom value is correct. However the view always seems to use 1.0 to display the document. If the user later uses the "zoom-in" or "zoom-out" actions, then the magnification is changed correctly. The code uses html_view_zoom_in() respective html_view_zoom_out() to do that. I am using gtkhtml2 2.11.1 from Debian Sid.
According to its developer, gtkhtml2 is not under active development anymore. It is unlikely that there will be any further active development. Closing this report as WONTFIX as part of Bugzilla Housekeeping - Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.