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
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
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
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
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