#631 Regression: icon view layout is broken

1.1
closed-fixed
GTK3 (7)
6
2012-10-26
2012-10-13
PCMan
No

See the attached screenshot.
version: current git
both pcmanfm and libfm are compiled with --with-gtk=3

How to reproduce:
When changing to a new dir by double click on a folder icon, the files in the newly loaded folder are positioned incorrectly.
Note that there is no horizontal scrollbar, but the icons are scrolled to left and some are partially shown.
This bug never exists in 1.0.1.
I guess it's related to the new icon size handling.

Discussion

  • PCMan

    PCMan - 2012-10-13
     
  • Lonely Stranger

    Lonely Stranger - 2012-10-13

    From your screenshot I would guess it isn't related to cell sizes but rather it seems as left border of folder view rendered is behind of side pane instead of to be right to it. But unfortunately I cannot reproduce this with libfm/pcmanfm compiled with any gtk2 nor gtk3. :(
    And of course, the bug never existed in 1.0.1, as 1.0.1 never can be compiled with gtk3. :)

     
  • Lonely Stranger

    Lonely Stranger - 2012-10-13
    • milestone: --> 2334032
     
  • Lonely Stranger

    Lonely Stranger - 2012-10-15
    • labels: 805537 --> GTK3
     
  • Lonely Stranger

    Lonely Stranger - 2012-10-24

    I could reproduce it with gtk version 3.4.2. It appears to work fine with gtk 3.2.0 though. That is weird but at least it can be reproduced here so investigated. Thank you very much.

     
  • Lonely Stranger

    Lonely Stranger - 2012-10-24
    • milestone: 2334032 --> 1.1
     
  • Lonely Stranger

    Lonely Stranger - 2012-10-26

    This bug is very weird - the GTK calls size_allocate() on the ExoIconView widget once at time of folder loading and twice after folder is loaded: one time after adding items and yet one time later, with the same size but with strange coordinates (for example, -95:-260). On ExoTreeView though the size_allocate() is called twice at time of folder loading and once after it is loaded, all 3 times with coordinates 0:0. I could not find any reason in the libfm for that so I've added a workaround, see it in the Git.

     
  • Lonely Stranger

    Lonely Stranger - 2012-10-26
    • status: open --> closed-fixed
     
  • Lonely Stranger

    Lonely Stranger - 2012-10-27

    P.S. With GTK 3.2.0 size_allocate() on the ExoIconView is called once at time of folder loading and three times after it's loaded. All times with coordinates 0:0, i.e. it isn't affected by this bug.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks