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 590744 - Page cells rendered double width sometimes; right half not clickable
Page cells rendered double width sometimes; right half not clickable
Status: RESOLVED FIXED
Product: pdfmod
Classification: Other
Component: general
git master
Other Linux
: High major
: ---
Assigned To: pdfmod-maint
pdfmod-maint
: 592255 609279 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-04 15:15 UTC by Igor Vatavuk
Modified: 2010-09-13 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot showing the bug (15.92 KB, image/png)
2009-08-04 21:26 UTC, Igor Vatavuk
Details
cell width is unusualy large (34.45 KB, image/png)
2009-08-08 00:36 UTC, Igor Vatavuk
Details

Description Igor Vatavuk 2009-08-04 15:15:28 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.
Comment 1 Gabriel Burt 2009-08-04 16:42:14 UTC
I can't reproduce this.  Are you using pdfmod from git master?  Do you always see this behavior, or just sometimes?
Comment 2 Igor Vatavuk 2009-08-04 21:26:59 UTC
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.
Comment 3 Gabriel Burt 2009-08-04 21:29:57 UTC
Ah, is it just selecting by drawing as selection rectangle that isn't working?  Or actually single clicking on a page thumb too?
Comment 4 Gabriel Burt 2009-08-04 23:32:50 UTC
Drag selecting is working fine in my testing.  What distro are you using, with what version of Gtk# and Gtk+?
Comment 5 Igor Vatavuk 2009-08-04 23:52:20 UTC
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
Comment 6 Igor Vatavuk 2009-08-08 00:36:57 UTC
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
Comment 7 Gabriel Burt 2009-08-18 19:36:31 UTC
*** Bug 592255 has been marked as a duplicate of this bug. ***
Comment 8 Robert Dyer 2009-08-20 01:56:27 UTC
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?
Comment 9 Igor Vatavuk 2009-08-20 06:34:55 UTC
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.
Comment 10 Robert Dyer 2009-08-20 06:50:03 UTC
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.
Comment 11 Gabriel Burt 2009-09-18 19:45:04 UTC
Robert, I can't reproduce this.  I would really appreciate it if you could try to fix it!
Comment 12 Gabriel Burt 2009-12-20 07:35:49 UTC
This sounds similar to bug #570152
Comment 13 Gabriel Burt 2010-02-08 03:16:32 UTC
*** Bug 609279 has been marked as a duplicate of this bug. ***
Comment 14 Gabriel Burt 2010-02-08 04:04:55 UTC
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.
Comment 15 Gabriel Burt 2010-03-27 02:10:18 UTC
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.
Comment 16 Gabriel Burt 2010-09-13 19:06:40 UTC
Man this was a pain to figure out/work around.  Should be fixed in master though.
Comment 17 Robert Dyer 2010-09-13 20:47:27 UTC
Confirmed fixed.  Great work!