GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why my application hanging

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
cnu_sree
GTK+ Geek


Joined: 06 Oct 2006
Posts: 57

PostPosted: Thu Sep 13, 2007 7:23 am    Post subject: why my application hanging Reply with quote

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
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 75
Location: Wilkes Barre Pa

PostPosted: Thu Sep 13, 2007 4:04 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP