Re: How can I use g_signal_connect() to pass a gponiter parameter



2009/2/4 Magnus Myrefors <tkv764x tninet se>:
>   You seem to be printing out a pointer and not what the pointer is pointing
> to.
>   If you want to print the whole string f.ex. "Radio1" you should try with
> another type,
>   since gchar* just points to a gchar .
>   You could use  gchar  radio1[]  or  const gchar *radio1 since these types
> are stored
>   differently in memory than a gchar *.

Unfortunately this is not correct. gchar is an alias (on every
platform afaik) for the 'char' type. You can printf() a char* type.
Your problem is something else (others have already made good
suggestions.)

-- 
http://codebad.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]