"L. Mart�n Arga�araz" wrote:
> 
> Hello, I'm starting using glade and I have just found a problem.
> I hav create a window with some comboboxs. The create_window function
> return to the main program a widget called window.
> I want to acces to a combobox entry from the main program and I can't
> find the way to do it.

In the FAQ (on http://glade.gnome.org):

4.5 How do I get a pointer to a widget from within a signal handler?

If you have a pointer to any widget in a window, you can get a pointer to
any other widget in the window using the lookup_widget() function that Glade
provides (in support.c).

You pass it a pointer to any widget in a window, and the name of the widget
that you want to get. Usually in signal handlers you can use the first argument
to the signal handler as the first parameter to lookup_widget(), e.g.

void
on_button1_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{
  GtkWidget *entry1;

  entry1 = lookup_widget (GTK_WIDGET (button), "entry1");

  ...
}

_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to