LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2009, 04:04 AM   #1
gktandc
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
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.
 
Old 04-19-2009, 09:15 AM   #2
gktandc
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I need your help ...
 
Old 04-22-2009, 07:15 PM   #3
kike_coello
Member
 
Registered: Jul 2005
Location: maryland
Distribution: Ubuntu 9.04
Posts: 88

Rep: Reputation: 17
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.
 
Old 04-23-2009, 12:33 AM   #4
gktandc
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kike_coello View Post
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use a gchar ** variable in gtk+ Carunkumar Programming 3 02-15-2008 08:57 AM
int to str? kalleanka Programming 2 09-15-2007 08:49 AM
str.chomp! masternerdguy Programming 3 07-17-2007 02:39 PM
string to gchar* BackwardsDown Programming 7 09-28-2006 07:17 PM
Gimp Tool Kit gchar Widget comparison... chewysplace Programming 2 01-30-2004 04:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration