RE: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
Status: Inactive
Brought to you by:
lyle
|
From: Daniel S. <da...@pr...> - 2004-03-11 02:29:51
|
Incidentally, when I run it and click the item to remove it, I get the
following in my output:
FXRbGetRubyObj(this=3D0x07027cb0) returns non-Qnil
Anybody know what that means and how to resolve it?
> -----Original Message-----
> From: Daniel Sheppard=20
> Sent: Thursday, 11 March 2004 12:59 PM
> To: fxr...@li...
> Subject: [Fxruby-users] Cannot connect to SEL_DELETED on a treeList
>=20
>=20
> Eeep. And now more segfaults. Either I'm missing out on some=20
> fundamentals here, or there's much bugginess about.
>=20
> Once I connect to SEL_DELETED on a @treeList, I get a=20
> segfault on exit if the tree isn't empty. If I run the=20
> following program and exit immediately, I get a segfault. If=20
> I click the item (removing it), it exits cleanly.
>=20
> ---
>=20
> class TestWindow < FXMainWindow
> def initialize(parent)
> super(parent, "test", nil, nil, DECOR_ALL, 0, 0, 400, 300)
> @treeList =3D FXTreeList.new(self, 0)
> @treeList.connect(SEL_DELETED) { |a,b,item| puts "deleted"}
> @treeList.connect(SEL_CLICKED) { |a,b,item|=20
> @treeList.removeItem(item, true); puts "removed"}
> item =3D @treeList.addItemLast(nil, FXTreeItem.new("hello"), true)
> end
> def create
> super
> show(PLACEMENT_SCREEN)
> end
> end
> =20
> if __FILE__ =3D=3D $0
> FXApp.new("test7", "test") do |theApp|
> TestWindow.new(theApp)
> theApp.create
> theApp.run
> end
> end=20
> ##############################################################
> #######################
> This email has been scanned by MailMarshal, an email content=20
> filter.=20
> ##############################################################
> #######################
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President=20
> and CEO of GenToo technologies. Learn everything from=20
> fundamentals to system=20
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick
> _______________________________________________
> Fxruby-users mailing list
> Fxr...@li...
> https://lists.sourceforge.net/lists/listinfo/fxruby-users
>=20
#########################################################################=
############
This email has been scanned by MailMarshal, an email content filter.
#########################################################################=
############
|