Re: GnomeUIInfo & grayed out menu items.



>  I've been wondering how one can gray out menu items created via a
>  GnomeUIInfo template with GnomeApp/GnomeMDI?

After you have generated the menus, the "widget" fields of your
GnomeUIInfo structures point to the corresponding menu items.  So if
you know which GnomeUIInfo you want to modify, you can do

    gtk_widget_set_sensitive (my_uiinfo.widget, FALSE);

  Federico



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