comparison frontends/primitivus/primitivus @ 216:783d6a61e0bd

primitivus: Q&D workaround for dbus.String issue
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 17:23:13 +0100
parents b2e1a13ed596
children 782319a64ac6
comparison
equal deleted inserted replaced
215:370f387a43c0 216:783d6a61e0bd
217 id = self.bridge.callMenu(category, item, "NORMAL") 217 id = self.bridge.callMenu(category, item, "NORMAL")
218 self.current_action_ids.add(id) 218 self.current_action_ids.add(id)
219 for new_menu in add_menus: 219 for new_menu in add_menus:
220 category,item,type = new_menu 220 category,item,type = new_menu
221 assert(type=="NORMAL") #TODO: manage other types 221 assert(type=="NORMAL") #TODO: manage other types
222 menu.addMenu(category, item, add_menu_cb) 222 menu.addMenu(unicode(category), unicode(item), add_menu_cb)
223 223
224 menu_roller = custom_widgets.MenuRoller([(_('Main menu'),menu)]) 224 menu_roller = custom_widgets.MenuRoller([(_('Main menu'),menu)])
225 return menu_roller 225 return menu_roller
226 226
227 def __buildMainWidget(self): 227 def __buildMainWidget(self):