ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-dev
php-gtk-dev
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved