Re: GnomeUIInfo, Toggleitem and default values



Jonas Oberg wrote:

> I have (thanks to GnomeHello), managed to build a minimalistic
> GNOME application in which I have created a menu with a set of
> toggle items (GNOMEUIINFO_TOGGLEITEM). These work very well.
> But now I'd also like to set those toggles to reasonable default
> values and to read those values on exit (so I can reload them
> upon startup).
> 
> I have looked high and low without finding any information on
> how that is supposed to work.
after calling gnome_app_create_menus(), the widget member of the used
GnomeUIInfo structure points to the created widgets. you can then use
gtk_toggle_button_set_active(uiinfo[SOME_INDEX].widget, TRUE).

jaKa

-- 

w3:    http://pluton.ijs.si/~jaka
email: jaka.mocnik@kiss.uni-lj.si



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