patch: GtkTreeView::get_drag_dest_row
| From: | bob majdak jr | Date: | Thu, 21 Jun 2007 20:46:55 +0000 |
| Subject: | patch: GtkTreeView::get_drag_dest_row | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-3902@lists.php.net to get a copy of this message | ||
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
Attachment: [text/x-patch] gtktreeview-get_drag_dest_row-bob.diff
Attachment: [text/x-patch] gtktreeview-get_drag_dest_row-bob.diff