public void ApplyConfig(UserConfig userConfig)
{
Trace.Call(userConfig);
if (userConfig == null)
{
throw new ArgumentNullException("userConfig");
}
string modeStr = (string)userConfig["Interface/Notification/NotificationAreaIconMode"];
NotificationAreaIconMode mode = (NotificationAreaIconMode)Enum.Parse(
typeof(NotificationAreaIconMode),
modeStr
);
NotificationAreaIconMode = mode;
MenuWidget.OpenLogAction.Visible = Frontend.IsLocalEngine;
MenuWidget.OpenLogToolAction.Visible = Frontend.IsLocalEngine;
#if GTK_SHARP_2_10
StatusIconManager.ApplyConfig(userConfig);
#endif
#if INDICATE_SHARP || MESSAGING_MENU_SHARP
IndicateManager.ApplyConfig(userConfig);
#endif
#if NOTIFY_SHARP
NotifyManager.ApplyConfig(userConfig);
#endif
Entry.ApplyConfig(userConfig);
Notebook.ApplyConfig(userConfig);
ChatTreeView.ApplyConfig(userConfig);
ChatViewManager.ApplyConfig(userConfig);
MenuWidget.JoinWidget.ApplyConfig(userConfig);
}