http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Gert Cuykens
static void callback( GtkWidget *widget, gpointer data ){ g_print (Hello again - %s was pressed\n, (gchar *) data); } why do they put () around gchar ? why can it not be gchar *data ? What does %s do ? Are gpointer and gchar global variables of gtk ? Are gpointer and gchar data types or

Re: http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Hubert SokoĊ‚owski
On Thu, 17 Feb 2005 13:05:43 +0100 Gert Cuykens [EMAIL PROTECTED] wrote: static void callback( GtkWidget *widget, gpointer data ){ g_print (Hello again - %s was pressed\n, (gchar *) data); } why do they put () around gchar ? why can it not be gchar *data ? What does %s do ? Are

Re: http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Keith Sharp
On Thu, 2005-02-17 at 13:05 +0100, Gert Cuykens wrote: static void callback( GtkWidget *widget, gpointer data ){ g_print (Hello again - %s was pressed\n, (gchar *) data); } why do they put () around gchar ? why can it not be gchar *data ? gpointer is a void pointer and the call to

Re: http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Leandro A. F. Pereira
On Thu, 2005-02-17 at 13:17 +0100, Hubert Sokoowski wrote: You should learn some more about programming in C before you start writing GTK apps. Or consider using something else, such as Python. Leandro ___ gtk-app-devel-list mailing list