Re: Problem with the gc I use to draw



>> >The drawing goes fine but after I draw if I go to the buttons these get
>> >painted(as if the color leaked) in the color of the white_gc or black_gc
>> >I am using to draw. Why is this?
>>
>> styles are shared resources. if you don't this effect, use
>> gtk_style_copy() and gtk_widget_set_style() to get a per-widget style,
>> and then modify the copy.
>
>I tried using different styles for each widget but I still encountered the
>same problem.

did you use gtk_style_copy() ? and did you copy the GC's? I should
probably have mentioned that too - they are also shared resources.

--p



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