drawing x-y axis

2005-03-15 Thread Aaron Yang
hi everyone, does anyone know how i shd go about having a fixed horizontal and vertical axis in my draw program? or how shd i modify the sample scribble program so that there will be a fixed x and y axis in it? thanks! - Do you Yahoo!? Y

Re: segmentation fault

2005-02-10 Thread Aaron Yang
it shd be static gint real_draw ( gpointer ) but still upon clicking the button, program terminates with segmentation error. what else could be the problem? thanks again for your help --- Olexiy Avramchenko <[EMAIL PROTECTED]> wrote: > Aaron Yang wrote: > > > void draw_button_clicke

segmentation fault

2005-02-09 Thread Aaron Yang
hi everyone, i'm trying to modify the scribble-simple to do the following: #include #define N 50 double x[50], y[50]; static void draw_brush( GtkWidget *widget, gdoublex, gdoubley ) { GdkRectangle update_rect; update_rect.x = x - 5

multiple declaration error

2005-02-09 Thread Aaron Yang
hi everyone, does anyone know why i get the following error even though i've only declared the function once? callbacks.o(.text+0x0): In function `draw_button_clicked': /home/programs/animation4/src/callbacks.c:17: multiple definition of `draw_button_clicked' main.o(.text+0x0):/home/programs/an