GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Oct 23, 2014 7:57 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: why my application hanging
PostPosted: Thu Sep 13, 2007 7:23 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
why application hanging once's i change the text on label
here is my code
gchar **msg;
gchar **no;
msg=g_strsplit(strFromURI,"@",2);
no= g_strsplit(msg[0],":",2);

no[1]=g_strconcat(no[1] ," hi",NULL);

gtk_widget_set_sensitive(RefreshBalanceButton,FALSE);
gtk_widget_set_sensitive(DialButtonAnswer,FALSE);
gtk_label_set (GTK_LABEL (StatusLabel),no[1]);
in thi gtl_label_set creating the problem
if i remove this line my application working fine
but i need to show some text on it
why it is hanging
thank u
sree


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 13, 2007 4:04 pm 
Offline
GTK+ Guru

Joined: Thu Jun 21, 2007 1:52 pm
Posts: 198
Location: Wilkes Barre Pa
When asking a question about why your code doesn't work its best to provide
all of they code and they compiler error message your getting.

See here:
http://www.gtk.org/tutorial/c755.html#SEC-LABELS

Oh and to answer your question think about whats different in these two lines the root
to all of your problems lies there.

gtl_label_set

gtk_label_set

After you get your program working go here
http://www.gtkforums.com/viewtopic.php?t=769
there is some info that will make you a better gtk programmer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group