How can I convert a string to widget name?



Hello everyone.I use glade and GTK+ 2.0 to develop my application.
 
on my code such as:
 
const gchar * widgetname(GString * string,gchar c)
{
       GString * temp;
       temp=g_string_append_c(string,c);
       return temp;
}
 
And I want use it like this:
 
    widget=lookup_widget(GTK_WIDGET(button),widgetname("mylabel_",'0'));
to find my widget named "mylabel_0".
 
But it running wrong.How can I do it?


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

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