Re: How to use PROP_TYPE_BUTTON?
- From: Le phan Anh <phanl csse monash edu au>
- To: Dia-list gnome org
- Cc:
- Subject: Re: How to use PROP_TYPE_BUTTON?
- Date: Fri, 15 Oct 2004 07:59:04 +1000
I think the object get copied itself. I traced down and get to this line
in lib/propdialogs.c, in function prop_dialog_add_property()
if ((prop->even_handler) && (!dialog->obj_copy))
dialog->obj_copy =
dialog->orig_obj->ops->copy(dialog->orig_obj);
Lars Ræder wrote:
On Fri, 15 Oct 2004 01:14:06 +1000, Le phan Anh
<phanl csse monash edu au> wrote:
Hi all,
Have anyone got experience using this type when creating a PropDialog? I
am using it to open up a new window ( I do my own things on that window
and update the Dia object later on)
The hard thing is that just a copy of Dia object is passed to the event
handler of PROP_TYPE_BUTTON, so the question is how to update the
original one correctly
It's been quite a while since I worked on the PROP_BUTTON. I assume
you've looked at the (commented out) example in SADT/annotation.c?
AFAIR, the object doesn't get copied, only the attribute list. Are
you checking the object pointers to see that it is indeed a separate
object?
-Lars
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]