Find a widget by name



Hi,
who can help me, I'm searching for a method to find a widget by name
from the toplevelwidget beginning.
I found a function generated by 'glade', but it does not work.

  if (widget->parent)
    widget = gtk_widget_get_toplevel (widget);
  found_widget = (GtkWidget*) gtk_object_get_data (GTK_OBJECT
(widget),name);

I look in source code - IMHO i can't work.
Can you help me
Bernd




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