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 757828 - Provide a shortcuts window
Provide a shortcuts window
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 757937
 
 
Reported: 2015-11-09 16:34 UTC by Allan Day
Modified: 2017-01-17 06:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: Add shortcuts help window (11.68 KB, patch)
2015-11-11 10:02 UTC, Felipe Borges
none Details | Review
Screenshot - shortcuts window (page 1) (258.72 KB, image/png)
2015-11-11 10:03 UTC, Felipe Borges
  Details
Screenshot - shortcuts window (page 2) (233.70 KB, image/png)
2015-11-11 10:03 UTC, Felipe Borges
  Details
shell: Add shortcuts help window (12.06 KB, patch)
2015-11-13 08:33 UTC, Felipe Borges
none Details | Review
shell: Add shortcuts help window (13.78 KB, patch)
2015-12-02 15:29 UTC, Felipe Borges
none Details | Review
shell: Add shortcuts help window (15.36 KB, patch)
2015-12-02 16:30 UTC, Felipe Borges
committed Details | Review
screenshot (178.83 KB, image/png)
2015-12-02 16:35 UTC, Felipe Borges
  Details

Description Allan Day 2015-11-09 16:34:41 UTC
Since Evince doesn't have a menu bar, it would be great to provide a GtkShortcutsWindow so that users can discover available keyboard shortcuts and gestures.

More details can be found here: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 1 Felipe Borges 2015-11-10 11:51:06 UTC
For a summary of evince shortcuts, see https://git.gnome.org/browse/evince/tree/help/C/shortcuts.page
Comment 2 Felipe Borges 2015-11-11 10:02:11 UTC
Created attachment 315235 [details] [review]
shell: Add shortcuts help window

Use GTK+'s new shortcut window to document our shortcuts.
See: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 3 Felipe Borges 2015-11-11 10:03:21 UTC
Created attachment 315236 [details]
Screenshot - shortcuts window (page 1)
Comment 4 Felipe Borges 2015-11-11 10:03:45 UTC
Created attachment 315237 [details]
Screenshot - shortcuts window (page 2)
Comment 5 Germán Poo-Caamaño 2015-11-12 22:27:53 UTC
Review of attachment 315235 [details] [review]:

We need to bump the version requirement in configure.ac as well.
Comment 6 Felipe Borges 2015-11-13 08:33:59 UTC
Created attachment 315389 [details] [review]
shell: Add shortcuts help window

Use GTK+'s new shortcut window to document our shortcuts.
See: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 7 Felipe Borges 2015-11-18 08:31:01 UTC
we might want to add some Gesture shortcuts too, right?
Comment 8 Carlos Garcia Campos 2015-12-02 11:01:17 UTC
Review of attachment 315389 [details] [review]:

Thanks for the patch, would it be possible to do this depending on the GTK version instead of bumping the requirements?

::: shell/evince.gresource.xml
@@ +22,1 @@
   <gresource prefix="/org/gnome/evince/shell">

Maybe we can just rename this one, and add all resources here.
Comment 9 Carlos Garcia Campos 2015-12-02 11:02:51 UTC
(In reply to Felipe Borges from comment #7)
> we might want to add some Gesture shortcuts too, right?

Yes, we have some gestures too.
Comment 10 Felipe Borges 2015-12-02 15:29:36 UTC
Created attachment 316664 [details] [review]
shell: Add shortcuts help window

Use GTK+'s new shortcut window to document our shortcuts.
See: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 11 Felipe Borges 2015-12-02 15:32:32 UTC
(In reply to Carlos Garcia Campos from comment #9)
> (In reply to Felipe Borges from comment #7)
> > we might want to add some Gesture shortcuts too, right?
> 
> Yes, we have some gestures too.

we can go with just the keys for now, just like gnome-documents, and get the gestures included later when gtk+ is "more" ready.
Comment 12 Felipe Borges 2015-12-02 15:35:31 UTC
(In reply to Germán Poo-Caamaño from comment #5)
> Review of attachment 315235 [details] [review] [review]:
> 
> We need to bump the version requirement in configure.ac as well.

as we discussed IRL, as long as we are not adding the entry to the app-menu now, we don't need to bump the version. GtkApplication (in the current version 3.16) is not going to add_accelerator for the help-overlay, so the ShortcutsWindow will be "disabled" for old versions of Gtk.
Comment 13 Felipe Borges 2015-12-02 16:30:59 UTC
Created attachment 316669 [details] [review]
shell: Add shortcuts help window

Use GTK+'s new shortcut window to document our shortcuts.
See: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows
Comment 14 Felipe Borges 2015-12-02 16:35:13 UTC
Created attachment 316670 [details]
screenshot

(In reply to Felipe Borges from comment #11)
> (In reply to Carlos Garcia Campos from comment #9)
> > (In reply to Felipe Borges from comment #7)
> > > we might want to add some Gesture shortcuts too, right?
> > 
> > Yes, we have some gestures too.
> 
> we can go with just the keys for now, just like gnome-documents, and get the
> gestures included later when gtk+ is "more" ready.

nevermind. the patch above already contains the touchpad gestures.
Comment 15 Carlos Garcia Campos 2015-12-02 16:38:04 UTC
Comment on attachment 316669 [details] [review]
shell: Add shortcuts help window

Thanks
Comment 16 Felipe Borges 2015-12-02 16:47:03 UTC
Comment on attachment 316669 [details] [review]
shell: Add shortcuts help window

Pushed at https://git.gnome.org/browse/evince/commit/?id=6e454ee8f362fcce647ec875406451b4f5cd394f
Comment 17 Ildar 2017-01-17 06:47:55 UTC
(In reply to Felipe Borges from comment #1)
> For a summary of evince shortcuts, see
> https://git.gnome.org/browse/evince/tree/help/C/shortcuts.page

Do you know that the page isn't up-to-date also? Some shortcuts do not work, GConf isn't used etc.