Re: =?UTF-8?Q?goo=5Fcanvas=5Fpolyline=5Fnew=5Fline=20dynamic=20move?=
- From: Jonathan Armani <dbd asystant net>
- To: Damon Chaplin <damon karuna eclipse co uk>
- Cc: goocanvas-list gnome org
- Subject: Re: goo_canvas_polyline_new_line dynamic move
- Date: Fri, 05 Feb 2010 16:49:07 +0100
Thanks, I have read your code.
I thought I could do that without creating any structure but I have
resolved it with one :
typedef struct canvas_item {
GooCanvasItem * item;
int type;
GooCanvasItem ** connection_in;
int nb_in;
GooCanvasItem ** connection_out;
int nb_out;
} canvas_item;
Then I update all the parent / child.
On Fri, 05 Feb 2010 11:15:35 +0000, Damon Chaplin
<damon karuna eclipse co uk> wrote:
> On Fri, 2010-02-05 at 00:30 +0100, Jonathan Armani wrote:
>> Hi,
>>
>> I have two item "connected" with a goo_canvas_polyline_new_line and I
>> want
>> it to follow when moving one of the two connected item.
>>
>> I have tried multiple signals but it doesn't work.
>>
>> (I will have multiple connected item in the future, item1 <--- polyline
>> --
>> item2 --- polyline --> item3).
>
> I use polylines between items in SynthForge:
> http://sourceforge.net/projects/synthforge/
> Look at the second screenshot - it does exactly what you are doing, i.e.
> when you drag items around the polylines move with them. (Unfortunately
> the code is a bit complicated so might not help much.)
>
> Where is your code going wrong? Do you get the button press events? the
> motion events? It helps if you send a complete test app that is supposed
> to work.
>
> Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]