def on_tree_handle_selection_changed(self, tree_selection):
        if not tree_selection:
            return
        model, selection = tree_selection.get_selected_rows()
        for path in selection:
            iterator = model.get_iter(path)
            rootdir = self.tree.get_model().get_value(iterator, TV_PATH_COLUMN)
            kind = self.tree.get_model().get_value(iterator, TV_KIND_COLUMN)
            if kind == TV_KIND_DIR:
                self.load_directory_collection(rootdir)
            else:
                self.load_recent_photos()
Called when the selection in the tree changed.
dataset/ETHPy150Open thesamet/webilder/src/webilder/WebilderDesktop.py/WebilderDesktopWindow.on_tree_handle_selection_changed