[Glade-users] How to use lookup_widget()?



Hello everyone. My name is Yuichi.

I'm sorry if these have been asked before, I couldn't find answers in
the archives.

How to use lookup_widget() to get GtkNotebook pointer? I tried "notebook"
as follows

    GtkWidget *widget;
    widget = lookup_widget(GTK_WIDGET(notebook),"notebook_name");

but compiler said as follows

    callbacks.c:74: `notebook' undeclared (first use in this function)

So I want know how to get GtkNotebook pointer? I use glade code
generater and use support.c(.h) too. (I could get button pointer by
using lookup_widget().)

If you have any idea, please tell me!

I'm sorry if you cannnot understand my English. I'm not good at write in
English.

Thanks.

-- 
Yuichi Shinkai <shinkai uap nipr ac jp>






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