Re: was: how to do a dash line in goocanvas, how to set color or position of a goocanvasgroup



On Sun, 2013-09-29 at 10:28 -0400, D M German wrote:

 dmg> onal to the pressure used to draw the line.
 dmg> One of the problems I am facing is that when I try to set the properties
 dmg> in the group, it does not change. For example, the following code
 dmg> changes the color and position of any GooItem in the canvas, but it does
 dmg> not do anything if the type is a GooCanvasGroup. I have debugged it and
 dmg> I am positive that it is a GooCanvasGroup (it works for a
 dmg> GooCanvasPolyline as expected):

    g_object_set(item->canvas_item, 
 dmg>                  "stroke-color-rgba", item->brush.color_rgba, 
 dmg>                  "x", 10.0,
 dmg>                  NULL);

 dmg> Is this the way I should be changing its color once it is rendered in
 dmg> the screen?

Oh, I think I got an answer to my own question... the properties of children
will be change as long as they have not been set. 

Yes, properties cascade down the hierarchy, but can be overridden on
lower levels.

Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]