Re: passing data to a callback



>  and now that I try to
>  construct something similar with Gnome it doesn't work,
>  because it tells me the user_data field isn't constant...
>  how do I solve this problem?
>  
>  (I don't want to make the data static, I think that's ugly,
>   I want to pass it to all the functions that need it.)

Declare the GnomeUIInfo structures with NULL data pointers, and then
use gnome_app_create_menus_with_data().

  Federico



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