Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#1235 closed defect (fixed)

Journal list view: jumping back to first page when popping up a palette

Reported by: sascha_silbe Owned by: alsroot
Priority: Immediate Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Major Keywords: r+
Cc: erikos, garycmartin Distribution/OS: Unspecified
Bug Status: New

Description

The Journal list view jumps back to the first page when opening a palette, making it impossible to resume old entries.
The attached patch fixes that by refreshing the list only on change from fully-obscured to visible, not on every minor visibility change.

Attachments (5)

0002-fix-Journal-list-view-jumping-back-to-first-page-on-.patch (1.3 KB) - added by sascha_silbe 15 years ago.
fix Journal list view jumping back to first page on showing a Palette
sugar-1235.patch (7.2 KB) - added by alsroot 15 years ago.
sugar-1235.2.patch (7.5 KB) - added by alsroot 15 years ago.
sugar-1235.3.patch (4.1 KB) - added by alsroot 15 years ago.
sugar-1235.4.patch (1.5 KB) - added by alsroot 15 years ago.

Download all attachments as: .zip

Change History (26)

Changed 15 years ago by sascha_silbe

fix Journal list view jumping back to first page on showing a Palette

comment:1 Changed 15 years ago by tomeu

  • Keywords r+ added; r? removed
  • Owner changed from tomeu to sascha_silbe
  • Status changed from new to assigned

Thanks, please push.

comment:3 Changed 15 years ago by alsroot

e.g. in case of changing entries w/o opening details view

comment:5 Changed 15 years ago by alsroot

last three comments are obsoleted

comment:6 Changed 15 years ago by alsroot

last patch is adapted version of previous two commit links

Changed 15 years ago by alsroot

comment:7 Changed 15 years ago by alsroot

last patch was rewrote according to irc discussion

Changed 15 years ago by alsroot

comment:8 Changed 15 years ago by alsroot

  • Cc erikos garycmartin added
  • Resolution set to fixed
  • Status changed from assigned to closed

at the end another approach was chosen - just change vadjustment value
http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/18b089a07f68aa669d49ebdac726e5d71ab9985c

the bad thing with this way is after requery list view loses focus highliting(e.g. select row, after clicking on Favorite icon for this row it losses focus). One of possible decision is change focus color(for shell process not in gtkrc)

so, if its not ok with losing focus, please reopen ticket

comment:9 Changed 15 years ago by alsroot

  • Keywords r? added; r+ removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Changed 15 years ago by alsroot

comment:10 Changed 15 years ago by tomeu

  • Keywords r+ added; r? removed
  • Owner changed from sascha_silbe to alsroot
  • Status changed from reopened to assigned

Sounds good, thanks.

comment:13 Changed 15 years ago by alsroot

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:14 in reply to: ↑ 11 ; follow-up: Changed 15 years ago by alsroot

Replying to alsroot:

http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/12f562c59323a008ed16a306f419ab6f642153e1

This commit leads to flickering while hide/show invoking in development ubuntu and mandriva repos, w/o this commit Journal doesn't flickering like in gentoo(just scrollbars movements).

So, in my mind we have odd consequences of tying to particular gtk version behaviour.

comment:15 in reply to: ↑ 14 Changed 15 years ago by alsroot

Replying to alsroot:

Replying to alsroot:

http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/12f562c59323a008ed16a306f419ab6f642153e1

This commit leads to flickering while hide/show invoking in development ubuntu and mandriva repos, w/o this commit Journal doesn't flickering like in gentoo(just scrollbars movements).

So, in my mind we have odd consequences of tying to particular gtk version behaviour.

|TestCase|

  • have move then one page of entries in Jorunal
  • scroll to top
  • scroll to one row down
  • chage Favorite icon
  • in last ubuntu/mandriva its flickering

comment:16 Changed 15 years ago by erikos

  • Priority changed from Unspecified by Maintainer to Immediate

Changed 15 years ago by alsroot

comment:17 follow-up: Changed 15 years ago by alsroot

  • Keywords r? added; r+ removed

Its still not ideal, but it works w/o glitches in all of my environments.

And I guess we need to rewrite listview code in 0.88.

comment:18 Changed 15 years ago by alsroot

  • Owner changed from alsroot to tomeu
  • Status changed from reopened to assigned

comment:19 in reply to: ↑ 17 Changed 15 years ago by tomeu

  • Keywords r+ added; r? removed
  • Owner changed from tomeu to alsroot

Replying to alsroot:

And I guess we need to rewrite listview code in 0.88.

Well, mostly the model I guess, so we don't reset it. It may help if the journal accesses directly the xapian index, instead of going through the DS.

comment:20 Changed 15 years ago by alsroot

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:21 Changed 11 years ago by dnarvaez

  • Milestone 0.86 deleted

Milestone 0.86 deleted

Note: See TracTickets for help on using tickets.