self.treeview.set_fixed_height_mode(True)
# menu plugins
- board_plugins.load(self.treeview, self.menu_edit)
+ board_plugins.load(self.widget_tree)
self.restore()
self.window.show()
self.filterbar = self.widget_tree.get_widget(
"bonobodockitem_filterbar")
self.entry_filterbar = self.widget_tree.get_widget("entry_filterbar")
- self.menu_edit = self.widget_tree.get_widget("menu_edit").get_submenu()
def set_status(self, text):
self.statusbar.set_status(text)
if not iter:
return
- thread = model.get_value(iter, ThreadListModel.column_names.index("id"))
- title = model.get_value(
- iter, ThreadListModel.column_names.index("title"))
+ dic = model.get_dict(iter)
+ thread = dic["id"]
+ title = dic["title"]
print thread + ':"' + title + '"', "activated"
- res = model.get_value(iter, ThreadListModel.column_names.index("res"))
- lineCount = model.get_value(
- iter, ThreadListModel.column_names.index("lineCount"))
+ res = dic["res"]
+ lineCount = dic["lineCount"]
update = res > lineCount
model, iter = selection.get_selected()
if not iter:
return
- thread = model.get_value(
- iter, ThreadListModel.column_names.index("id"))
+ thread = model.get_dict(iter)["id"]
bbs_type_for_thread = self.bbs_type.clone_with_thread(thread)