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 164776 - fullscreen mode quirks
fullscreen mode quirks
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 165794 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-20 23:55 UTC by Christian Persch
Modified: 2005-02-07 23:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (23.59 KB, patch)
2005-02-05 21:08 UTC, Christian Persch
none Details | Review
Checked in fix for attachment (32.88 KB, patch)
2005-02-06 21:15 UTC, Christian Persch
accepted-commit_now Details | Review

Description Christian Persch 2005-01-20 23:55:42 UTC
"Exit Fullscreen" should be "Leave Fullscreen" as per HIG, should be in the
top-right corner instead of bottom-left where it obscurs the thumbnail sidebar,
and use the new stock_leave-fullscreen stock icon from g-i-t instead of
GTK_STOCK_QUIT.

If you agree, I'm going to provide a patch.
Comment 1 Marco Pesenti Gritti 2005-01-21 09:34:09 UTC
Sounds good, I'm unsure about the position though... ccing Bryan
Comment 2 Bryan W Clark 2005-01-21 18:33:34 UTC
Ok, the stock icon update sounds good. 

I'm hesitant about the positioning since two apps that I like and use very much
(Epiphany and Totem) both have the 'Exit Fullscreen' on the bottom left. 
Everything in the guildeline sounds good, however the positioning seems bad, or
maybe just not as important as having most apps use the same place.  Maybe I
should get a hold of Calum and figure out if we really wanted it on the top
right and not the bottom left. 
Comment 3 Christian Persch 2005-01-21 18:50:17 UTC
In Epiphany we've just changed it to top-right (from bug 153270), since that's
what the HIG says...
Comment 4 Bryan W Clark 2005-01-21 19:43:35 UTC
Ok, I didn't get a hold of Calum, but I checked out the new Epiphany (good
work!) and it looks reasonable to put the 'Leave Fullscreen' button in the upper
right as part of the toolbar. 

I suppose we'll run into the same autohide issues.  PDF and PS viewers are very
often used for presentations so we should think about making the autohide
functionality work well too.  Thanks!
Comment 5 Bryan W Clark 2005-01-27 19:13:12 UTC
This is waiting for patches from the awesome chpe :-)
Comment 6 Vincent Noel 2005-01-31 17:54:20 UTC
*** Bug 165794 has been marked as a duplicate of this bug. ***
Comment 7 Christian Persch 2005-02-05 21:08:07 UTC
Created attachment 37038 [details] [review]
fix

This patch does (all the same as Epiphany):
- change "Exit Fullscreen" to "Leave Fullscreen"
- use the new stock_leave-fullscreen icon from g-i-t
- move the popup to top right corner
- if toolbar=on, show a "Leave Fullscreen" item in the toolbar to the right,
instead of showing the popup
- on focus in/out, show/hide the popup as to not show up on other workspaces
too

It also fixes a bug I noticed while working on this: toggle toolbar off,
sidebar on, go fullscreen and activate the sidebar's combo box -> surprise! :)
Comment 8 Marco Pesenti Gritti 2005-02-06 19:29:16 UTC
/* Toolbar icons */
 #define EV_STOCK_ZOOM_FIT_WIDTH "ev-zoom-fit-width"
 
+#define EV_STOCK_LEAVE_FULLSCREEN "stock_leave-fullscreen"

no space between the defines please. I'm totally sure you missed my nitpicks a
lot :P

+	/* This sucks, but there is no way to have a draw=no, expand=true separator
+	 * in a GtkUIManager-built toolbar. So, just add another toolbar.
+	 */

Did you post a bug about this? It should probably be referenced there.

How much would it take to persist chrome in prefs like in epiphany?
Comment 9 Christian Persch 2005-02-06 21:15:41 UTC
Created attachment 37073 [details] [review]
Checked in fix for attachment

>/* Toolbar icons */
> #define EV_STOCK_ZOOM_FIT_WIDTH "ev-zoom-fit-width"
> 
>+#define EV_STOCK_LEAVE_FULLSCREEN "stock_leave-fullscreen"

>no space between the defines please. 
Fixed.


>+	/* This sucks, but there is no way to have a draw=no, expand=true
separator
>+	 * in a GtkUIManager-built toolbar. So, just add another toolbar.
>+	 */
>Did you post a bug about this? It should probably be referenced there.
Filed, it's gtk+ bug 166489.

>How much would it take to persist chrome in prefs like in epiphany?
Implemented in the updated patch: I now persist the toolbar, statusbar and
sidebar toggles to gconf, and read them on startup from there. Schemas file
added too.
Comment 10 Marco Pesenti Gritti 2005-02-07 11:57:08 UTC
Comment on attachment 37073 [details] [review]
Checked in fix for attachment

+      <key>/schemas/apps/evince/show_toolbar_bar</key>
+      <applyto>/apps/evince/show_toolbar/applyto>

Looks like you have a wrong _bar suffix in all keys there.

Please commit with this fixed, thanks!
Comment 11 Bryan W Clark 2005-02-07 18:12:18 UTC
Comment on attachment 37073 [details] [review]
Checked in fix for attachment

I just updated the schema file and commited to fix this error:

-      <applyto>/apps/evince/show_toolbar/applyto>
+      <applyto>/apps/evince/show_toolbar</applyto>

-      <applyto>/apps/evince/show_sidebar/applyto>
+      <applyto>/apps/evince/show_sidebar</applyto>
-      <applyto>/apps/evince/show_statusbar/applyto>
+      <applyto>/apps/evince/show_statusbar</applyto>
Comment 12 Bryan W Clark 2005-02-07 23:00:05 UTC
Seems like this has all landed in CVS, closing. I guess reopen it if I'm mistaken.