/* basicgtk.c */
#include <gtk/gtk.h>
/* Function which stops the program */
void CloseTheApp(GtkWidget * window, gpointer data )
{
gtk_main_quit ();
}gint main ( gint argc, gchar * argv[] )
{/* Declare a GtkWidget to use as the main window */ GtkWidget * window ;
/* Start GTK+ up, and let it process any arguments that were */ /* passed in on the command line */ gtk_init ( &argc, &argv );
/* Create the window itself */
window = gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ;
gtk_signal_connect(GTK_OBJECT(window),
"destroy",
GTK_SIGNAL_FUNC(CloseTheApp),
NULL);/* Show the window, as far as GTK+ is concerned though we just want */ /* to make a widget visible */ gtk_widget_show (window);
/* Start GTK+ running so that it can catch any signals */ gtk_main () ;
/* This line will never be reached in this app */ return 0; }
_________________________________________________________________
Cell phone �switch� rules are taking effect � find out more here. http://special.msn.com/msnbc/consumeradvocate.armx
_______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
