# -*- coding: utf-8 -*-

import pygtk
pygtk.require('2.0')
import gtk

# stuff that only needs to be cleaned up if claws mail is not exiting anyways
if not clawsmail.is_exiting():
    
    # cleanup menus and actions that have been added in the startup script
    try:
        ui_manager = clawsmail.get_mainwindow_ui_manager()
        for merge_id in mainwindow_merge_ids:
            ui_manager.remove_ui(merge_id)
    except NameError:
        pass
    try:
        group = clawsmail.get_mainwindow_action_group()
        for action in mainwindow_actions:
            group.remove_action(action)
    except NameError:
        pass
        
