Re: Question about GtkWidget pointer?



Hi,

"David Wang (Wang Xin-lu)" <davidwang lucent com> writes:

> I wrote a function to create menu: 
> void setupMenu(GtkWidget *window, GtkWidget *menu_bar, GtkWidget *menu_vbox,
>         GtkWidget *root_menu, GtkWidget *menu, char *labelname, gboolean boo)
> [...]
> why GtkWidget pointer can not take back value in a function?
> How can I do if I want to use the value initialized in a function?

this question is not at all GTK+ specific. Get yourself a book about C
and look for the subject "call by reference / call by value".


Salut, Sven



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