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 SokoÅowski 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 gt

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

2005-02-17 Thread Claudio Bley
On Thu, Feb 17, 2005 at 01:05:43PM +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 ? In C, it's called a cast. > why can it not be gchar *data ? Bec

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 cal

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

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 o