chinese and scroll(Ubuntu 13.04)

Bug #1191454 reported by 小三
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drawers
New
Undecided
Unassigned

Bug Description

/opt/extras.ubuntu.com/drawers/drawers/Drawer.py

import sys # add
reload(sys) # add
sys.setdefaultencoding('utf-8') # add

    def execute(self, value):
        ....
        #group='Desktop Action '+self.cleanname(value)
        group=u'Desktop Action '+self.cleanname(value) # Support Chinese

    def __init__(self, filename=None, addfile=[],debug=False):
        ....
        self.show_all()
        pwindow.queue_draw()
        self.place_items() # add,because Ubuntu13.04 scroll

    def place_items(self):
        ....
        #h=min(ivrequest.height+hb.height+5,maxh)
        h=min(ivrequest.height+hb.height+20,maxh) # Ubuntu13.04 mayby scroll

每次更新后,我要修改这些代码,才能让Drawer在Ubuntu13.04上正常工作
希望对你有帮助.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.