from gi.repository import Gtk


def fix_action_group_importance(ag):
    for action in ag.list_actions():
        ifact = Gtk.IconFactory()
        if not action.get_property("stock-id") or not ifact.lookup(action.get_property("stock-id")):
            # print 'No icon found for',action
            action.set_property("is-important", True)
