I was reading through a glade 2 tutorial i found http://www.kplug.org/glade_tutorial/gla ... ction.html
i figured out that (because i use KDE) i had to create the containers/widgets that were supposedly default with a new window (but i really don't care about that) the problem i have run into is this.....
I have gotten to the portion of the tutorial that involves editing the source (main.c, callbacks.c) i.e. the good stuff....
I am stuck here:
http://www.kplug.org/glade_tutorial/gla ... emp_4.html
I kicked open my editor (SciTE, a killer scintilla based IDE)
and made the changes that were stipulated in the main.c file... no worries there.
However, when i attempt to make the following changes i.e.
which that chunk of code begins as this:Open the callbacks.c file in your editor of choice. You'll see all the callbacks or signal handlers we added previously, with the one we just added for delete event at the bottom of the file. Go to that one.
Add
gtk_main_quit();
above
return FALSE;
in the on_gtemp_app_delete_event() function. For more information on gtk_main_quit() you can consult the gtk+ API at the gtk-General section.
Code: Select all
}
gboolean
on_gtemp_app_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data)
{
return FALSE;
}
I am willing to admit (as if i have a choice in this) that i feel pretty f&^%ing stupid about now, but i am just as stuborn and would like very much to learn my lesson and continue in this tutorial. i'm sure i am making a glaring error but here is an example....
Mychunk (edited):
Code: Select all
}
gboolean
on_gtemp_app_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data)
gtk_main_quit();
{
return FALSE;
}
Code: Select all
callbacks.c:120: error: syntax error before "gtk_main_quit"
callbacks.c:120: error: conflicting types for `gtk_main_quit'
/usr/include/gtk-2.0/gtk/gtkmain.h:145: error: previous declaration of `gtk_main_quit'
callbacks.c:120: warning: data definition has no type or storage class
callbacks.c:121: error: syntax error before '{' token
make: *** [callbacks.o] Error 1
madsc13ntist:/home/madsc13ntist/Projects/project1/src#
Thanks in advance to any/all who so much as comment that will help me (in any way) on my way to linux developement.