code: def _get_selected_ids(self):
          
          selection = self.get_selection()
          if selection.get_mode() != gtk.SELECTION_MULTIPLE:
              raise AttributeError('selected_ids only valid for select_multiple')
          model, selected_paths = selection.get_selected_rows()
          if selected_paths:
              return zip(*selected_paths)[0]
          else:
              return ()
docs: List of currently selected ids