LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to apply gchar *str[] to a GValue (https://www.linuxquestions.org/questions/programming-9/how-to-apply-gchar-%2Astr%5B%5D-to-a-gvalue-720164/)

gktandc 04-19-2009 04:04 AM

How to apply gchar *str[] to a GValue
 
Iam learning gtk, and I am a newbie

I want to apply this: {"aa","bb","cc"} to a GValue, and I haven't find answer on the Dev Help.

Any answer will be appreciated.

gktandc 04-19-2009 09:15 AM

I need your help ...

kike_coello 04-22-2009 07:15 PM

Maybe try:

g_value_set_*(): Set the value stored by the GValue object to the given variable. This
new value must be the same type as the function.

or:

g_value_get_*(): Retrieve the value stored by the GValue object, which is already cast to
the given type.

replace * with string, int, etc.

Hope that helps.

gktandc 04-23-2009 12:33 AM

Quote:

Originally Posted by kike_coello (Post 3517792)
Maybe try:

g_value_set_*(): Set the value stored by the GValue object to the given variable. This
new value must be the same type as the function.

or:

g_value_get_*(): Retrieve the value stored by the GValue object, which is already cast to
the given type.

replace * with string, int, etc.

Hope that helps.

Thank you.
it helps..


All times are GMT -5. The time now is 02:38 PM.