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 301969 - Evince should have an epiphany style zoom combobox in the tool bar.
Evince should have an epiphany style zoom combobox in the tool bar.
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: High enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on: 117923
Blocks:
 
 
Reported: 2005-04-25 19:45 UTC by James Bowes
Modified: 2006-10-23 23:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
WIP patch. (32.80 KB, patch)
2005-04-25 19:53 UTC, James Bowes
none Details | Review
Features working. (35.02 KB, patch)
2005-04-25 22:26 UTC, James Bowes
none Details | Review
Now with separator! (36.16 KB, patch)
2005-04-26 00:17 UTC, James Bowes
committed Details | Review

Description James Bowes 2005-04-25 19:45:20 UTC
As above. A useful enhancement beyond what ephiphany does would be to include the 
'Best Fit' and 'Fit Page Width' options in the combobox. It may be nice to put
these below a seperator, too.
Comment 1 James Bowes 2005-04-25 19:53:06 UTC
Created attachment 45670 [details] [review]
WIP patch.

Zoom levels are working, and the control updates to display the closest zoom
level, if the level is changed through the menu, for example.

Still have to get the Best Fit etc options working.
Comment 2 Nickolay V. Shmyrev 2005-04-25 21:29:09 UTC
Combobox is nice for jumping to very high and very low scale, but quite often task 
is to make document a bit bigger or a bit smaller. Changing from Fit Width to
Fit both in this case will require significant actions, like cursor positioning. 

So at least like in nautilus browser button there should be zoom in and zoom ut
buttons on the sides of control. 

Let's import epiphany toolbar editor, then everyone could set toolbar as hi likes.
Comment 3 Nickolay V. Shmyrev 2005-04-25 21:30:50 UTC
And of course having control in addition to buttons would be nice.
Comment 4 James Bowes 2005-04-25 22:26:58 UTC
Created attachment 45676 [details] [review]
Features working.

Zooming and choosing 'best fit' or 'fit page width' now work from the toolbar
combo box. The control also updates itself when zooming etc is changed
elsewhere.

Unfortunately, I couldn't get a separator in there. If one is wanted, I suppose
we could write a separator cell renderer to use with the combo box, or switch
to a ToolbarMenu (Though this will look and behave differently).
Comment 5 Christian Persch 2005-04-25 23:41:16 UTC
To put a separator in the combo box, you cannot use gtk_combo_box_new_text; you
have to construct the cell renderer and the model yourself. See epiphany's
src/ephy-toolbar-editor.c:ephy_toolbar_editor_constructor() for an example with
a separator.
Comment 6 James Bowes 2005-04-26 00:17:31 UTC
Created attachment 45681 [details] [review]
Now with separator!

Sweet!

Thanks for pointing that out, Christian.

This patch is the same as the previous, but now the combobox has a separator
between the zoom percentages and the zoom modes.
Comment 7 Bryan W Clark 2005-04-26 20:51:46 UTC
Yeah, that looks good.  The values for zoom are something we'll probably have to
tweak with some testing, but I like this a lot better.  Awesome work!
Comment 8 James Bowes 2005-05-02 16:35:50 UTC
This is now in CVS. We still have to get good zoom values, though.
Comment 9 Reinout van Schouwen 2005-11-30 11:53:03 UTC
I am reopening this bug because we have been talking about a different style
zoom widget in epiphany for a long time, but want to stay consistent with
evince. See bug 117923. Please comment.
Comment 10 Reinout van Schouwen 2006-02-16 22:02:13 UTC
I see that the patch is committed; note that Epiphany 1.9.x now has two simple "Smaller" and "Larger" buttons on the default toolbar layout. The combobox is still available as optional widget.
Comment 11 Wouter Bolsterlee (uws) 2006-10-20 14:57:14 UTC
Reinout, can I close this bug?
Comment 12 Reinout van Schouwen 2006-10-23 23:59:09 UTC
Closing.

One remaining question is whether evince could benefit from "smaller/larger/fit width/fit page" buttons on the toolbar, instead of the combobox widget.