Antonio Zugaldia wrote:

> Hello everybody!
>
>         How can I have a pointer to a widget outside callbacks.c? Can I still
> use lookup_widget? For example if I want a pointer to a GtkWidget *list
> (which is a clist) that is into a "main" window,
>

If you want do this:

> GtkWidget *listptr;
> listptr = lookup_widget ( ???, "clist");

and you are in the function called by

GtkWidget ok_pressed_button  (GtkObject * button, ....)

help yourself analyzing my code:

void
on_ok_errormsg_pressed                 (GtkButton       *button,
                                        gpointer         user_data)
{
 Msg_Errore = lookup_widget (GTK_WIDGET (button), "error_window");
 gtk_widget_destroy(Msg_Errore);
}

I use this code to close a msg box error... more than one msg would be open at
the same time.


> does not work. I have been able to use this way into callbacks.c with no
> problem. What can I do?
>
> Thanks and regards!
>
> Antonio.
> --
> /*   Antonio Zugaldia Rodriguez <mailto:[EMAIL PROTECTED]>
>    Microsoft te da las ventanas, GNU/Linux te da la casa completa */
>

--

  {*}      Roberto A. Foglietta
 <>  \./Z/ ______________________________________
<><>  |    e-mail  : mailto:[EMAIL PROTECTED]
~~~~~~~~~~ homepage: http://digilander.iol.it/robang
DDNNNDMNIF linuxgrp: http://www.fisica.unige.it/linuxgrp




+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to