rem: gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("File"), _("Save"), NULL)), sensitif ); gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("File"), _("Save as"), NULL)), sensitif ); gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("File"), _("Export QIF file ..."), NULL)), sensitif ); gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("File"), _("Close"), NULL)), sensitif ); gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("Accounts"), _("Remove an account"), NULL)), sensitif ); gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, menu_name(_("Accounts"), _("Closed accounts"), NULL)), sensitif );
add: while ( *tmp ) { gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general, *tmp ), sensitif ); tmp++; }
context: void menus_sensitifs ( gboolean sensitif ){    if ( DEBUG )	printf ( "menus_sensitifs : %d\n", sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("File"), _("Save"), NULL)),			       sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("File"), _("Save as"), NULL)),			       sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("File"), _("Export QIF file ..."), NULL)),			       sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("File"), _("Close"), NULL)),			       sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("Accounts"), _("Remove an account"), NULL)),			       sensitif );    gtk_widget_set_sensitive ( gtk_item_factory_get_item ( item_factory_menu_general,							   menu_name(_("Accounts"), _("Closed accounts"), NULL)),			       sensitif );}