Auto-sizing of single tab thumbnail ribbon, also on zoomin/out. Stops autosizing once you manually move the ribbon splitter.

This commit is contained in:
Oliver Duis
2010-11-10 00:39:20 +01:00
parent a876935d37
commit 6cce14161f
6 changed files with 23 additions and 2 deletions

View File

@@ -409,6 +409,11 @@ void FileCatalog::refreshAll () {
fileBrowser->refreshThumbImages ();
}
void FileCatalog::refreshHeight () {
int newHeight=fileBrowser->getEffectiveHeight();
set_size_request(0, newHeight);
}
void FileCatalog::_openImage (std::vector<Thumbnail*> tmb) {
if (enabled && listener!=NULL) {
@@ -838,14 +843,14 @@ bool FileCatalog::trashIsEmpty () {
void FileCatalog::zoomIn () {
fileBrowser->zoomIn ();
refreshHeight();
}
void FileCatalog::zoomOut () {
fileBrowser->zoomOut ();
refreshHeight();
}
void FileCatalog::refreshEditedState (const std::set<Glib::ustring>& efiles) {