/* basicgtk.c */
#include <gtk/gtk.h>
/* Function which stops the program */ void CloseTheApp(GtkWidget * window, gpointer data ) { gtk_main_quit (); }
gint timer = gtk_timeout_add( 1000, (GtkFunction) show_window_function, (gpointer) data );
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 */ show_window_function ( GtkWidget * timer, gpointer data )
/* Start GTK+ running so that it can catch any signals */ gtk_main () ;
/* This line will never be reached in this app */ return 0; }
_________________________________________________________________
Take advantage of our best MSN Dial-up offer of the year ? six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list