GNOME Bugzilla – Bug 590744
Page cells rendered double width sometimes; right half not clickable
Last modified: 2010-09-13 20:47:27 UTC
Application doesn't register clicks on thumbnails if user clicks to the right half of the cell. Steps to reproduce: 1. Open a PDF file 2. Click on the right side of the cell (right side of the page) 3. Page should be selected but it's not Clicking on the left part of the cell works as expected.
I can't reproduce this. Are you using pdfmod from git master? Do you always see this behavior, or just sometimes?
Created attachment 139909 [details] screenshot showing the bug I am using pdfmod from git master and I can always reproduce this. Here, I will upload a screenshot that shows how far I can go with selection rectangle without actually selecting the page. It's interesting that the tooltip shows but the selection isn't triggered. Are there any relevant packages that could affect this? I am running Ubuntu Karmic (development version) so maybe something is messed up.
Ah, is it just selecting by drawing as selection rectangle that isn't working? Or actually single clicking on a page thumb too?
Drag selecting is working fine in my testing. What distro are you using, with what version of Gtk# and Gtk+?
I experience the issue with both single clicking (left and right click) and with dragging a rectangle selection. I took the screenshot of the latter only because it is easier to see. I am running Ubuntu Karmic (unstable development release) with packages: libgtk2.0-0 version 2.17.6-0ubuntu1 libgtk2.0-cil version 2.12.9-1 libmono-cairo2.0-cil version 2.4dfsg-5ubuntu2
Created attachment 140163 [details] cell width is unusualy large I just noticed that the width of one "cell" on my system is a lot wider than on your screenshots. Maybe that is somehow related to this bug. I am attaching a screenshot
*** Bug 592255 has been marked as a duplicate of this bug. ***
I am on Ubuntu Jaunty with packages: libgtk2.0-0 version 2.16.1-0 libgtk2.0-cil version 2.12.8-2 I am also seeing the same behavior, can't click on the right half of a page to select or drag and drag selections fail to select. Also my cell width looks just like Igor's screenshot, very wide. My guess right now is its a version issue with Gtk. What version do you use, Gabriel?
I think the cell width is a different issue. To me it looks like the width bug is in GetSize that somehow returns width*2, but I'm not sure about this.
For me, I am getting this with one of my pdfs: PageCell.GetSize => width = 128 CairoCell.Render => width = 240 So this is why we wind up with the page being 'half' the cell width (or the cell width being ~2x). GetSize just pulls the ItemWidth from the IconView so I dont think that is wrong, thus the bug is whatever calculates the cell_area and calls Render.
Robert, I can't reproduce this. I would really appreciate it if you could try to fix it!
This sounds similar to bug #570152
*** Bug 609279 has been marked as a duplicate of this bug. ***
I tested with Ubuntu 9.10 and was able to reproduce this. I tried a few things to fix it, but not luck so far.
I have spent way too much time trying to figure this one out; I'm really stymied. Makes me consider changing to the Hyena ListView/Grid just to nuke it.
Man this was a pain to figure out/work around. Should be fixed in master though.
Confirmed fixed. Great work!