Skip Menu |

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

Report information
The Basics
Id: 36996
Status: resolved
Priority: 0/
Queue: Gtk2-Ex-Datasheet-DBI

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: fixed_height_mode error
Date: Sun, 22 Jun 2008 11:29:54 +1000
To: bug-Gtk2-Ex-Datasheet-DBI [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
With datasheet 2.10 (or 2.15), gtk2-perl 1.181, and debian perl 5.10.0 the program below gets an error parent of MyDialog is not a GtkCellRenderer at foo.pl line 63. The message comes from gtk2-perl under its GET_SIZE dispatch for a custom cell renderer, but I don't know what it means. I was trying to set fixed_height_mode in my program to stop treeview's notoriously slow sizing calculations. It'd be good if that was possible.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #36996] AutoReply: fixed_height_mode error
Date: Thu, 26 Jun 2008 08:57:14 +1000
To: bug-Gtk2-Ex-Datasheet-DBI [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Nosing around I think Gtk2::Ex::Datasheet::DBI::CellRendererText needs a GET_SIZE method. I get some joy from adding the following to that package section in DBI.pm sub GET_SIZE { my ($self, $widget, $cell_area) = @_; return $self->SUPER::GET_SIZE ($widget, $cell_area); } (The GET_SIZE provided by gtkperl is only setup to be reached as a $self->SUPER::GET_SIZE. It uses "caller" to look through the class heirarchy to find the C class to dispatch to. So what looks like a dummy call straight to the super is not :-)
Subject: Re: [rt.cpan.org #36996] AutoReply: fixed_height_mode error
Date: Thu, 26 Jun 2008 10:24:53 +1000
To: bug-Gtk2-Ex-Datasheet-DBI [...] rt.cpan.org
From: Daniel Kasak <daniel.kasak [...] 247realmedia.com>
On Wed, 2008-06-25 at 18:57 -0400, Kevin Ryde via RT wrote: Show quoted text
> Queue: Gtk2-Ex-Datasheet-DBI > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=36996 > > > Nosing around I think Gtk2::Ex::Datasheet::DBI::CellRendererText needs a > GET_SIZE method. I get some joy from adding the following to that > package section in DBI.pm > > sub GET_SIZE { > my ($self, $widget, $cell_area) = @_; > return $self->SUPER::GET_SIZE ($widget, $cell_area); > } > > > (The GET_SIZE provided by gtkperl is only setup to be reached as a > $self->SUPER::GET_SIZE. It uses "caller" to look through the class > heirarchy to find the C class to dispatch to. So what looks like a > dummy call straight to the super is not :-)
That seems to fix it for me. Are you satisfied this is fixed? At least I can enable fixed_height_mode after the treeview is created, and it seems to be a lot faster. Thanks. Dan Daniel Kasak / DNA Application Developer T: +61.2.8968.4056 / F: +61.2.9904.5055 daniel.kasak@247realmedia.com 24/7 Real Media 15-19 Parraween Street Cremorne, NSW 2090 Australia
Subject: Re: [rt.cpan.org #36996] AutoReply: fixed_height_mode error
Date: Thu, 26 Jun 2008 10:30:34 +1000
To: bug-Gtk2-Ex-Datasheet-DBI [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
"Daniel Kasak via RT" <bug-Gtk2-Ex-Datasheet-DBI@rt.cpan.org> writes: Show quoted text
> > Are you satisfied this is fixed?
Yep.
Patch applied and will be in next version. Thanks :)