After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 536363 - html_view_set_magnification() doesn't work
html_view_set_magnification() doesn't work
Status: RESOLVED WONTFIX
Product: gtkhtml2
Classification: Deprecated
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Rodney Dawes
Rodney Dawes
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-06-03 03:50 UTC by Ari Pollak
Modified: 2012-03-31 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ari Pollak 2008-06-03 03:50:42 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.
Comment 1 Sven Neumann 2008-06-03 08:35:53 UTC
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?
Comment 2 Ari Pollak 2008-06-03 17:10:31 UTC
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.
Comment 3 Sven Neumann 2008-06-04 10:34:16 UTC
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.
Comment 4 Sven Neumann 2008-06-04 10:41:23 UTC
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.
Comment 5 André Klapper 2012-03-31 19:01:24 UTC
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.