asterik
10-04-2003, 06:38 PM
Hmm... ok heres the code:
void
on_button44_clicked (GtkButton *button,
gpointer user_data)
{
GtkWidget *label1;
char bufferl[32];
sprintf (bufferl, "untitled");
label1 = gtk_label_new (bufferl);
gtk_signal_connect_swapped (GTK_OBJECT (notebook1),"newpage",gtk_notebook_prepend_page (GTK_NOTEBOOK (notebook1), textview1, label1), app1);
}
Now.. i get this error:
callbacks.c: In function `on_button44_clicked':
callbacks.c:414: invalid use of void expression
make[2]: *** [callbacks.o] Error 1
Could someone help? Im trying to append a page to 'notebook1' and im readin the tutorial from:
http://wingtk.sourceforge.net/ishan/glade.html
and im using glade
void
on_button44_clicked (GtkButton *button,
gpointer user_data)
{
GtkWidget *label1;
char bufferl[32];
sprintf (bufferl, "untitled");
label1 = gtk_label_new (bufferl);
gtk_signal_connect_swapped (GTK_OBJECT (notebook1),"newpage",gtk_notebook_prepend_page (GTK_NOTEBOOK (notebook1), textview1, label1), app1);
}
Now.. i get this error:
callbacks.c: In function `on_button44_clicked':
callbacks.c:414: invalid use of void expression
make[2]: *** [callbacks.o] Error 1
Could someone help? Im trying to append a page to 'notebook1' and im readin the tutorial from:
http://wingtk.sourceforge.net/ishan/glade.html
and im using glade