[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dia-list
Subject:    Re: Object copy.
From:       Hans Breuer <hans () breuer ! org>
Date:       2011-08-30 18:45:21
Message-ID: 4E5D2FC1.7020108 () breuer ! org
[Download RAW message or body]

At 27.08.2011 01:31, Paul Chavent wrote:
> On 08/26/2011 10:01 PM, Hans Breuer wrote:
>> What is the problem you want to solve?
>
> I have a static counter in an init function that i call on the
> CreateFunc and CopyFunc. I hoped that this counter can be incremented
> for each new object on the sheet.
>
If your object is only created by the GUI it might work to set a flag in 
CopyFunc to only really update the counter once when in SelectFunc. The 
latter is always called after diagram insertion of the object.

> But when i copy paste the object, the counter increment of 4.
>
HTH,
	Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert
_______________________________________________
dia-list mailing list
dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic