Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 8ad6e1560cbd90aa35f798d4080c8547 > files > 10

claws-mail-plugins-python-3.7.9-2.fc15.i686.rpm

# -*- 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