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 734680 - AppDisplay: Reset to page 0 on mapped changed
AppDisplay: Reset to page 0 on mapped changed
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-08-12 16:52 UTC by Carlos Soriano
Modified: 2014-08-15 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
AppDisplay: Reset to page 0 on mapped changed (4.52 KB, patch)
2014-08-12 16:52 UTC, Carlos Soriano
none Details | Review
appDisplay: sync page when changing adjustment (1.11 KB, patch)
2014-08-14 13:42 UTC, Carlos Soriano
committed Details | Review

Description Carlos Soriano 2014-08-12 16:52:08 UTC
See patch
Comment 1 Carlos Soriano 2014-08-12 16:52:11 UTC
Created attachment 283224 [details] [review]
AppDisplay: Reset to page 0 on mapped changed

We always want to reset to page 0 on reopening the all view. Currently
we do that only on some cases, like hiding the overview, but not on some
others which is necessary to achieve this. So there were bugs on some of
those cases, since the activePage was not in sync with the current page
that the user is seeing active.

To avoid that, reset to page 0 on mapped property of the main actor of
all view changes.
Comment 2 drago01 2014-08-14 11:54:18 UTC
(In reply to comment #1)
> Created an attachment (id=283224) [details] [review]
> AppDisplay: Reset to page 0 on mapped changed
> 
> We always want to reset to page 0 on reopening the all view. Currently
> we do that only on some cases, like hiding the overview, but not on some
> others which is necessary to achieve this. 

Which are those other cases? Toggling the app picker does reset the page. Pressing ESC does. I cannot think of any other way to exit the app picker so I am not sure what this is supposed to fix.
Comment 3 Carlos Soriano 2014-08-14 13:42:13 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=283224) [details] [review] [details] [review]
> > AppDisplay: Reset to page 0 on mapped changed
> > 
> > We always want to reset to page 0 on reopening the all view. Currently
> > we do that only on some cases, like hiding the overview, but not on some
> > others which is necessary to achieve this. 
> 
> Which are those other cases? Toggling the app picker does reset the page.
> Pressing ESC does. I cannot think of any other way to exit the app picker so I
> am not sure what this is supposed to fix.

enter app view, navigate to a page, enter workspace view, enter app view again, try to navigate to a page, it will jump to the previous page + 1.
that's because it's not in sync. See next patch I'll attach to see it better.
In the previous patch I was just making always entering and quiting the allView to reset to page 0 to be consistent (currently changing between frequent view and all view doesn't reset them, since the size of all view is not changing)

Which approach do you like more?
Comment 4 Carlos Soriano 2014-08-14 13:42:30 UTC
Created attachment 283385 [details] [review]
appDisplay: sync page when changing adjustment

We were setting the value of adjustment on size changes, but we weren't
changing the page value, so adjustment and page value was not in sync.

To fix it, make sure adjustment of the view is in sync with the page
value.
Comment 5 drago01 2014-08-15 19:29:09 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Created an attachment (id=283224) [details] [review] [details] [review] [details] [review]
> > > AppDisplay: Reset to page 0 on mapped changed
> > > 
> > > We always want to reset to page 0 on reopening the all view. Currently
> > > we do that only on some cases, like hiding the overview, but not on some
> > > others which is necessary to achieve this. 
> > 
> > Which are those other cases? Toggling the app picker does reset the page.
> > Pressing ESC does. I cannot think of any other way to exit the app picker so I
> > am not sure what this is supposed to fix.
> 
> enter app view, navigate to a page, enter workspace view, enter app view again,
> try to navigate to a page, it will jump to the previous page + 1.

Oh ok I can reproduce that.
Comment 6 drago01 2014-08-15 19:31:31 UTC
Review of attachment 283385 [details] [review]:

LG.
Comment 7 Carlos Soriano 2014-08-15 21:08:06 UTC
Attachment 283385 [details] pushed as d1a3a00 - appDisplay: sync page when changing adjustment