archive::archive(const std::string& fileName) : archiveLibarchive(fileName) { applyFormats(); int ret = archive_read_open_filename(m_archive, fileName.c_str(), 4096); if (ret != ARCHIVE_OK) { archive_read_free(m_archive); m_archive = nullptr; throw std::runtime_error("libstriezel::ar::archive: Failed to open file " + fileName + "!"); } //fill entries fillEntries(); }
void Singledata::on_selection_changed() { //cout << "selected 0.1 " << endl ; Gtk::TreeModel::iterator iter = selection->get_selected(); //cout << "selected 0.2" << endl ; if(iter) { //If anything is selected //cout << "selected 1 " << endl ; Gtk::TreeModel::Row row = *iter; // cout << "selected 2 " << endl ; // cout << row[cols.getIntColumn("id")] << " is selected " << endl ; fillEntries(row[cols.getIntColumn("id")]); setStatusbar(); } }