Skip Menu |
 

This queue is for tickets about the Gtk2-Ex-PodViewer CPAN distribution.

Report information
The Basics
Id: 60097
Status: new
Priority: 0/
Queue: Gtk2-Ex-PodViewer

People
Owner: Nobody in particular
Requestors: jafingerhut [...] mac.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From jafingerhut [...] mac.com Wed Aug 4 22: 23:35 2010
CC: Andy Fingerhut <andy_fingerhut [...] alum.wustl.edu>
MIME-Version: 1.0
X-Spam-Status: No, score=-10.003 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_SOFTFAIL=0.596] autolearn=ham
X-Mailer: Apple Mail (2.936)
X-Spam-Flag: NO
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1004200000 definitions=main-1008040266
Message-ID: <0C975F9F-8528-42F0-A7A2-BFBD68BD60D6 [...] mac.com>
content-type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -10.003
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8DF66240B79 for <cpan-bug+Gtk2-Ex-PodViewer [...] hipster.bestpractical.com>; Wed, 4 Aug 2010 22:23:35 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mOqco2xXspfU for <cpan-bug+Gtk2-Ex-PodViewer [...] hipster.bestpractical.com>; Wed, 4 Aug 2010 22:23:29 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6A2A2240B65 for <bug-Gtk2-Ex-PodViewer [...] rt.cpan.org>; Wed, 4 Aug 2010 22:23:29 -0400 (EDT)
Received: (qmail 18111 invoked by uid 103); 5 Aug 2010 02:25:35 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 5 Aug 2010 02:25:35 -0000
Received: from asmtpout016.mac.com (HELO asmtpout016.mac.com) (17.148.16.91) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Wed, 04 Aug 2010 19:25:34 -0700
Received: from [10.0.1.2] (adsl-69-108-86-229.dsl.irvnca.pacbell.net [69.108.86.229]) by asmtp016.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPA id <0L6N00KVWQPUYY70 [...] asmtp016.mac.com> for bug-Gtk2-Ex-PodViewer [...] rt.cpan.org; Wed, 04 Aug 2010 19:25:07 -0700 (PDT)
Delivered-To: cpan-bug+Gtk2-Ex-PodViewer [...] hipster.bestpractical.com
Subject: Possible bug fix for intermittent link_clicked signal behavior
Return-Path: <jafingerhut [...] mac.com>
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.0.10011,1.0.148,0.0.0000 definitions=2010-08-05_01:2010-08-05,2010-08-04,1970-01-01 signatures=0
X-RT-Mail-Extension: gtk2-ex-podviewer
X-Original-To: cpan-bug+Gtk2-Ex-PodViewer [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Wed, 04 Aug 2010 19:25:06 -0700
X-Spam-Level:
To: bug-Gtk2-Ex-PodViewer [...] rt.cpan.org
Content-Transfer-Encoding: 7BIT
From: Andy Fingerhut <jafingerhut [...] mac.com>
X-RT-Original-Encoding: US-ASCII
Content-Length: 2271
Download (untitled) / with headers
text/plain 2.2k
My system: Ubuntu 10.4 LTS Perl version 5.10.1 I have Synaptics package libgtk2-ex-podviewer-perl version 0.18-1 installed, and I have verified that the Perl source code is identical to that in the version 0.18 .tar.gz file for PodViewer available on CPAN. I have been using gscan2pdf 0.9.31 and making modifications to it. It uses Gtk2::Ex::PodViewer, and while trying to use the link_clicked signal from PodViewer, I noticed that it seemed to only produce such a signal intermittently. Sometimes I would click on a link at the signal would be emitted, sometimes not. I did some Googling, and found the following email that appears as if someone else may have been experiencing similar troubles, but I'm not sure of that: http://www.mail-archive.com/gtk-perl-list@gnome.org/msg04116.html As an experiment, without any real understanding of how this code works, I noticed that the PodViewer code for emitting link_enter and link_leave signals was similar in some ways to that for emitting link_clicked signals. One difference was the first argument to the two calls to window_to_buffer_coords. I made the following one line change to my copy of PodViewer.pm, and the link_clicked signals became reliable -- they worked every time I clicked on one. If this works for others, too, or the author could verify that it is actually a fix, it would be great if a new version could be released and become the standard one in Linux distros. Thanks, Andy Fingerhut *** PodViewer.pm.orig 2008-10-04 07:01:23.000000000 -0700 --- PodViewer.pm 2010-08-04 18:33:22.000000000 -0700 *************** *** 454,460 **** sub clicked { my ($self, $event) = @_; ! my ($x, $y) = $self->window_to_buffer_coords('widget', $event- Show quoted text
>get_coords);
my $iter = $self->get_iter_at_location($x, $y); my $text = $self->get_link_text_at_iter($iter); if (defined($text) && $text ne '') { --- 454,460 ---- sub clicked { my ($self, $event) = @_; ! my ($x, $y) = $self->window_to_buffer_coords('text', $event- Show quoted text
>get_coords);
my $iter = $self->get_iter_at_location($x, $y); my $text = $self->get_link_text_at_iter($iter); if (defined($text) && $text ne '') {


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.