def log_list_view_button_press(treeview, event): path_pos_tuple = treeview.get_path_at_pos(int(event.x), int(event.y)) if path_pos_tuple == None: return False if not (event.button == 3): return False path, column, x, y = path_pos_tuple selection = treeview.get_selection() selection.unselect_all() selection.select_path(path) row = int(max(path)) guicomponents.display_media_log_event_popup_menu(row, treeview, _log_event_menu_item_selected, event) return True
def log_list_view_button_press(treeview, event): path_pos_tuple = treeview.get_path_at_pos(int(event.x), int(event.y)) if path_pos_tuple == None: return False if not (event.button == 3): return False path, column, x, y = path_pos_tuple selection = treeview.get_selection() selection.unselect_all() selection.select_path(path) row = int(max(path)) guicomponents.display_media_log_event_popup_menu(row, treeview, _log_event_menu_item_selected, event) return True