Re: Creating New Tab with Text Edit inside?



>Hmm i seem to be having trouble creating a new tab in my notebook1.
>Heres my error:
>
>callbacks.c: In function `on_button1_clicked':
>callbacks.c:359: parse error before "GtkNotebook"
>
>Heres my code:
>
>
>void
>on_button1_clicked                     (GtkButton       *button,
>                                        gpointer         user_data)
>{
>notebook1 = gtk_notebook_insert_page (GtkNotebook *notebook)
>}
>
>If you guys could help me out, i really would appreciate it :D

you need to work on basic C programming. what you've written is not
even close to legal C. why is there a type declaration as the argument
to the function? where are "notebook" or notebook1 defined? 



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