Re: Problem with the gc I use to draw

2002-03-14 Thread Paul Davis
>> >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_styl

Re: Problem with the gc I use to draw

2002-03-14 Thread Luis Velez
> >Hello ppl: > >Problem with the gc I use to draw, it leaks to other widgets. > >I have a Widget I use as a drawing area and 5 buttons I use to change > >between drawing functions. > >I am using these functions to draw on the Widget > > > >gdk_gc_s

Re: Problem with the gc I use to draw

2002-03-14 Thread Paul Davis
>Hello ppl: >Problem with the gc I use to draw, it leaks to other widgets. >I have a Widget I use as a drawing area and 5 buttons I use to change >between drawing functions. >I am using these functions to draw on the Widget > >gdk_gc_set_line_attributes(widget->st

Problem with the gc I use to draw

2002-03-14 Thread Luis Velez
Hello ppl: Problem with the gc I use to draw, it leaks to other widgets. I have a Widget I use as a drawing area and 5 buttons I use to change between drawing functions. I am using these functions to draw on the Widget gdk_gc_set_line_attributes(widget->style->white_gc, lineWidth, GDK_LINE