Re: how to draw something on GtkDrawingArea when I click a button?

2010-03-19 Thread Tolic Ma
On Fri, Mar 19, 2010 at 2:46 PM, Claudio Saavedra wrote: > El vie, 19-03-2010 a las 13:34 +0800, Tolic Ma escribió: > > Hi,everyone! > > > > I want to draw something on GtkDrawingArea when I click a GtkButton,but I > > don't know how to do this... > &g

how to draw something on GtkDrawingArea when I click a button?

2010-03-18 Thread Tolic Ma
Hi,everyone! I want to draw something on GtkDrawingArea when I click a GtkButton,but I don't know how to do this... this is my code(it doesn't work...): *void click_button(void){ gdk_draw_line(drawing_area,drawing_area->style->white_gc,x,y,width+x,height+y); } int main(int argc,char *argv[])