GNOME Bugzilla – Bug 353625
Presentation mode: type page number to jump there
Last modified: 2006-12-24 12:54:01 UTC
Both Powerpoint and OpenOffice.org Impress have the feature that in slideshow/presentation mode, you can type in the number of a slide, then hit Enter and it will jump to the slide number you typed in. Evince should do the same. (I searched for this feature on bugzilla but I couldn't find it, so I filed it myself.)
Created attachment 71942 [details] [review] Sample patch off of evince-0.5.2 Added a sample patch to approximate the behavior. Potential issues with the patch: 1) The Enter/Return keys can't be trapped by the EvView widget because the main widget already handles them. This patch allows you to use the letter "g" (for Go!) instead of Enter/Return. 2) No attempt is made to restrict the behavior to presentation mode. Maybe it would be useful outside of presentation mode, who knows?
+ else if (event->keyval == GDK_g || event->keyval == GDK_Return || event->keyval == GDK_KP_Enter) You should also check for GDK_ISO_Enter here.
Nice enchancement anyhow. But probably we need to show an entry like in typeahead
(In reply to comment #3) > But probably we need to show an entry like in typeahead I'd consider this a good addition, although not required functionality, since neither powerpoint nor openoffice.org do that.
That's not a valid argument, Evince can just do better ;)
I've just fixed it in cvs head. Finally, it uses a popup window with an entry.
2006-12-24 Wouter Bolsterlee <wbolster@cvs.gnome.org> * shell/ev-view.c: (ev_view_goto_window_create): Show "Jump to page" label in the page jumping popup in presentation mode instead of just a GtkEntry.