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 786431 - [PATCH] Add shortcuts for fullscreen and presentation mode
[PATCH] Add shortcuts for fullscreen and presentation mode
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 793577 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-08-17 16:02 UTC by Jonas Hahnfeld
Modified: 2018-03-07 02:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add shortcuts for fullscreen and presentation mode (2.04 KB, patch)
2017-08-17 16:02 UTC, Jonas Hahnfeld
none Details | Review
Add shortcuts for fullscreen and presentation mode (2.05 KB, patch)
2018-03-05 11:16 UTC, Jonas Hahnfeld
none Details | Review
Add shortcuts for fullscreen and presentation mode (2.04 KB, patch)
2018-03-05 12:15 UTC, Jonas Hahnfeld
committed Details | Review

Description Jonas Hahnfeld 2017-08-17 16:02:11 UTC
Created attachment 357819 [details] [review]
Add shortcuts for fullscreen and presentation mode

This makes it easier for the users fo find the shortcuts.
Comment 1 André Klapper 2017-08-17 17:09:13 UTC
Probably makes sense, however thinking of translators I'm wondering if strings could be synchronized with existing ones like
  #: ../shell/main.c:74
  msgid "Run evince in fullscreen mode"
  #: ../shell/main.c:75
  msgid "Run evince in presentation mode"
(which does not necessarily imply to change the patch, but maybe to change ../shell/main.c instead)
Comment 2 Jonas Hahnfeld 2017-08-17 17:36:13 UTC
(In reply to André Klapper from comment #1)
> Probably makes sense, however thinking of translators I'm wondering if
> strings could be synchronized with existing ones like
>   #: ../shell/main.c:74
>   msgid "Run evince in fullscreen mode"
>   #: ../shell/main.c:75
>   msgid "Run evince in presentation mode"
> (which does not necessarily imply to change the patch, but maybe to change
> ../shell/main.c instead)

Hmm, these are help strings for command line options, so they influence the startup behaviour. Not a strong opinion, just tell me if you want me to change the patch :-)
Comment 3 José Aliste 2018-02-23 22:52:45 UTC
Review of attachment 357819 [details] [review]:

Thanks for the patch. I think it makes sense, but I have some comments. We are in string freeze so we have to wait to after the freeze.

::: shell/help-overlay.ui
@@ +63,3 @@
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Enter fullscreen</property>

I would put "Enter/exit fullscreen" or "Toggle fullscreen" or "Fullscreen on/off" 
FWIW, Gedit uses "Fullscreen on/off".

@@ +73,3 @@
+                <property name="accelerator">F5</property>
+              </object>
+            </child>

You are missing a shortcut for Esc to Exit presentation mode.
Comment 4 Jonas Hahnfeld 2018-02-24 08:51:37 UTC
Wow, you should definitely change your review process, that's almost 6 months! As I don't have any time atm this will have to wait.
Comment 5 André Klapper 2018-02-24 15:56:12 UTC
@Jonas: Developer are volunteers, hence same problem with reviews which sometimes "have to wait" unfortunately. :-/
Comment 6 José Aliste 2018-02-25 02:54:21 UTC
*** Bug 793577 has been marked as a duplicate of this bug. ***
Comment 7 Jonas Hahnfeld 2018-02-25 08:32:09 UTC
(In reply to André Klapper from comment #5)
> @Jonas: Developer are volunteers, hence same problem with reviews which
> sometimes "have to wait" unfortunately. :-/

I know that, being a volunteer myself in other projects. I'm just saying that long review cycles will distract possible one-time contributors. And it's not like there is no activity in the evince git repository...
Comment 8 Bastien Nocera 2018-02-25 11:05:36 UTC
This is assigned to the user documentation. The patch is against the UI code, reassigning.
Comment 9 Jonas Hahnfeld 2018-03-05 11:16:05 UTC
Created attachment 369323 [details] [review]
Add shortcuts for fullscreen and presentation mode

(In reply to José Aliste from comment #3)
> Review of attachment 357819 [details] [review] [review]:
> 
> ::: shell/help-overlay.ui
> @@ +63,3 @@
> +              <object class="GtkShortcutsShortcut">
> +                <property name="visible">True</property>
> +                <property name="title" translatable="yes" context="shortcut
> window">Enter fullscreen</property>
> 
> I would put "Enter/exit fullscreen" or "Toggle fullscreen" or "Fullscreen
> on/off" 
> FWIW, Gedit uses "Fullscreen on/off".

Done.

> @@ +73,3 @@
> +                <property name="accelerator">F5</property>
> +              </object>
> +            </child>
> 
> You are missing a shortcut for Esc to Exit presentation mode.

Not listed in Gedit either, so I didn't add it for consistency.
Comment 10 Bastien Nocera 2018-03-05 12:00:55 UTC
(In reply to Jonas Hahnfeld from comment #9)
> Created attachment 369323 [details] [review] [review]
> Add shortcuts for fullscreen and presentation mode
> 
> (In reply to José Aliste from comment #3)
> > Review of attachment 357819 [details] [review] [review] [review]:
> > 
> > ::: shell/help-overlay.ui
> > @@ +63,3 @@
> > +              <object class="GtkShortcutsShortcut">
> > +                <property name="visible">True</property>
> > +                <property name="title" translatable="yes" context="shortcut
> > window">Enter fullscreen</property>
> > 
> > I would put "Enter/exit fullscreen" or "Toggle fullscreen" or "Fullscreen
> > on/off" 
> > FWIW, Gedit uses "Fullscreen on/off".
> 
> Done.

We don't use "on/off" for anything that couldn't be a physical switch. Please use "Toggle fullscreen"
Comment 11 Jonas Hahnfeld 2018-03-05 12:15:22 UTC
Created attachment 369326 [details] [review]
Add shortcuts for fullscreen and presentation mode

Another reviewer, another opinion
Comment 12 José Aliste 2018-03-06 20:42:58 UTC
(In reply to Jonas Hahnfeld from comment #11)
> Created attachment 369326 [details] [review] [review]
> Add shortcuts for fullscreen and presentation mode
> 
> Another reviewer, another opinion

Thanks, Bastien, Do we need a review from someone at the doc team? Or can I just merge this?
Comment 13 Bastien Nocera 2018-03-07 00:12:50 UTC
(In reply to Jonas Hahnfeld from comment #11)
> Created attachment 369326 [details] [review] [review]
> Add shortcuts for fullscreen and presentation mode
> 
> Another reviewer, another opinion

I'm sorry gedit has it wrong there ;)

(In reply to José Aliste from comment #12)
> (In reply to Jonas Hahnfeld from comment #11)
> > Created attachment 369326 [details] [review] [review] [review]
> > Add shortcuts for fullscreen and presentation mode
> > 
> > Another reviewer, another opinion
> 
> Thanks, Bastien, Do we need a review from someone at the doc team? Or can I
> just merge this?

We're in hard code freeze, but even last week, that would have required a string freeze break, as this added new strings to translate.

Looks fine to commit after branching for the 3.28 release though.
Comment 14 José Aliste 2018-03-07 02:30:43 UTC
Sure, I already branched for 3.28 in order to commit this only to master. THanks
Comment 15 José Aliste 2018-03-07 02:31:05 UTC
Review of attachment 369326 [details] [review]:

I am fine with this.
Comment 16 José Aliste 2018-03-07 02:31:31 UTC
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.