GNOME Bugzilla – Bug 465063
Zooming out beyond 50% results in zoom size still reporting 50%
Last modified: 2013-02-06 11:01:44 UTC
Please describe the problem: If one zooms out using the minus key, then the zoom level gets updated only as far as 50%. Beyond 50%, the zoom combo box still reports 50%. This is an issue when using very large documents (e.g. A0). I was confused for at least 5 seconds when I thought my document should be somewhat larger. Steps to reproduce: Load a document (assume any kind - tested with PS and PDF). Zoom out with minus key beyond a zoom level of 50%. Zoom menu still reports 50%. Actual results: Expected results: Does this happen every time? Other information:
Confirmed on trunk version.
Created attachment 151326 [details] [review] Add feature and solve bug by turning ComboBox into ComboBoxEntry
HI, I take a glance the patch, it's change the ComboBox to ComboBoxEntry. Does the patch could display the correct value when less than 50%? And what's the feature in this patch? And is it useful when less than 50%? I can't see any thing clearly in my laptop. Thanks!
ping? hi theo.tatinclaux: what 's your feature ? and I found some problem such as not free value? entry_activated_cb (GtkEntry *entry, EphyZoomControl *control) +{ + float zoom; + gchar* content = gtk_entry_get_text(entry); + guint n = strlen(content); + + if (content[n-1] == '%') + { + n--; + } + else { + gtk_entry_append_text(entry, "%"); + } + gchar* value = malloc(n); + strncpy (value, content, n); + + zoom = atoi(value)/100.0; + g_signal_emit (control, signals[ZOOM_TO_LEVEL_SIGNAL], 0, zoom); + ephy_zoom_control_set_zoom_level (control,zoom); +}
Hi, this bug has become obsolete as evince 3.8 will have a Combobox Entry and will show the exact zoom.