How can I convert a string to widget name?

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

 



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

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux