[PHP-GTK-DEV] patch: GtkTreeView::get_drag_dest_row
by Bob Majdak Jr other posts by this author
Jun 21 2007 1:50PM messages near this date
Re: [PHP-GTK-DEV] GD as shared extension
|
Re: [PHP-GTK-DEV] patch: GtkTreeView::get_drag_dest_row
With current PHP-GTK (beta tarball) I can crash the application
consistently like so:
$tree-> connect('drag-motion',array($this,'drag_motion'));
drag_motion($widget) {
$dest = $widget-> get_drag_dest_row();
print_r($dest);
}
the first time you drag a row, it works. the second time, segfault.
editing the method like so:
drag_motion($widget) {
$dest = $widget-> get_drag_dest_row();
print_r($dest);
$dest = null;
}
it crashes less frequently, but still crashes. however it should be noted:
drag_motion($widget) {
print_r($widget-> get_drag_dest_row());
}
that method never crashes.
So, I have rewritten that method override and now it is not crashing at
all. Attached a patch is, mmm. Also: what do I need to do to get that
method in the documentation, set_drag_dest_row() is but
get_drag_dest_row() is not.
I am also interested in getting 2.10 stuff in the documentation like
GtkStatusIcon.
Bob Majdak Jr
KateOS ROFLCOPTER Pilot
Thread:
Bob Majdak Jr
Anant Narayanan
|