Split gtk program into separate C files?



I'm new to gtk programming. I would like to create a simple window with a button. No problem. How do I go about putting the main window into one "c" file and putting the:
void CloseTheApp ()
{
 gtk_main_quit () ;
}
into another file. Would I simply create a "lib.h" file declaring "CloseTheApp"? Any help would be appreciated. Thanks.

_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/




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