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





 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. 



--daniel



--
Daniel M. German                  "I have a realistic grasp of my own
                                   strengths and weaknesses.
                                   My mind is my weapon.
                                   The mind needs books\like the sword needs a wetstone
   Tyrion L.A Game of Thrones, George R.R. Martin ->if it is to keep its edge."
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 


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