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 783404 - Going in or out of fullscreen mode makes unwanted move of sidebar window to its start
Going in or out of fullscreen mode makes unwanted move of sidebar window to i...
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-04 13:45 UTC by Nelson Benitez
Modified: 2017-06-05 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sidebar-thumbnails: fix unwanted move to start after fullscreen (2.00 KB, patch)
2017-06-04 13:50 UTC, Nelson Benitez
reviewed Details | Review
sidebar-thumbnails: fix unwanted move to start after fullscreen (2.52 KB, patch)
2017-06-04 14:25 UTC, Nelson Benitez
committed Details | Review

Description Nelson Benitez 2017-06-04 13:45:37 UTC
After activating or deactivating fullscreen mode, the sidebar
window is (wrongly) moved to its start, while scroll bar
stays (correctly) in its original position.

The sidebar window move is unwanted and unsolicited, and it's
most probably caused by GtkIconView or GtkScrolledWindow bug.

Workaround this by having the sidebar sync its window with the
current scroll position after a fullscreen operation, do that by
just emitting a "value-changed" on the current scroll adjustment.
Comment 1 Nelson Benitez 2017-06-04 13:50:52 UTC
Created attachment 353141 [details] [review]
sidebar-thumbnails: fix unwanted move to start after fullscreen

After activating or deactivating fullscreen mode, the sidebar
window is automatically moved to its start, while scroll bar
stays in its original position.
    
The sidebar window move is unwanted and unsolicited, and it's
most probably caused by GtkIconView or GtkScrolledWindow bug.
    
Workaround this by having the sidebar sync its window with the
current scroll position after a fullscreen operation, do that by
just emitting a "value-changed" on the current scroll adjustment.
Comment 2 Germán Poo-Caamaño 2017-06-04 14:00:54 UTC
Review of attachment 353141 [details] [review]:

::: shell/ev-sidebar-thumbnails.c
@@ +326,3 @@
+ev_sidebar_fullscreen_cb (EvSidebarThumbnails *sidebar)
+{
+	/* Fixes https://bugzilla.gnome.org/show_bug.cgi?id=783404 */

Why not adding the rationale itself here? If we move to a different issue tracker the link could become broken.
Comment 3 Nelson Benitez 2017-06-04 14:25:23 UTC
Created attachment 353143 [details] [review]
sidebar-thumbnails: fix unwanted move to start after fullscreen

Added new version with added rationale on a comment.

It's a matter of taste I guess, I prefer just to link to bugzilla to not enlarge sources too much. If gnome migrates issue tracker I hope proper link redirects are put in place, gnome sources are full of bugzilla references.
Comment 4 Carlos Garcia Campos 2017-06-04 15:28:08 UTC
Comment on attachment 353143 [details] [review]
sidebar-thumbnails: fix unwanted move to start after fullscreen

Ok, thanks.
Comment 5 Nelson Benitez 2017-06-05 13:33:36 UTC
(In reply to Carlos Garcia Campos from comment #4)
> Comment on attachment 353143 [details] [review] [review]
> sidebar-thumbnails: fix unwanted move to start after fullscreen
> 
> Ok, thanks.

Committed as commit 2bfb8fa7c2b253  Thank you!