How can I convert a string to widget name?
- From: Rtey Ehg <nbybxa yahoo com>
- To: gtk-list gnome org
- Subject: How can I convert a string to widget name?
- Date: Tue, 6 Jan 2004 01:56:31 -0800 (PST)
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]