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 465063 - Zooming out beyond 50% results in zoom size still reporting 50%
Zooming out beyond 50% results in zoom size still reporting 50%
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-09 15:13 UTC by Henry Gomersall
Modified: 2013-02-06 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add feature and solve bug by turning ComboBox into ComboBoxEntry (5.99 KB, patch)
2010-01-13 10:48 UTC, theo.tatinclaux
none Details | Review

Description Henry Gomersall 2007-08-09 15:13:55 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:
Comment 1 Emmanuel Fleury 2009-08-04 17:59:36 UTC
Confirmed on trunk version.
Comment 2 theo.tatinclaux 2010-01-13 10:48:06 UTC
Created attachment 151326 [details] [review]
Add feature and solve bug by turning ComboBox into ComboBoxEntry
Comment 3 Bin Li 2010-10-28 04:27:08 UTC
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!
Comment 4 fjKong 2010-10-28 08:55:42 UTC
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);
+}
Comment 5 José Aliste 2013-02-06 11:01:44 UTC
Hi, this bug has become obsolete as evince 3.8 will have a Combobox Entry and will show the exact zoom.