tabular and single tab workflows reunited! option in preferences

This commit is contained in:
Andrey Skvortsov
2010-10-01 22:10:07 -07:00
parent e679dd1a8f
commit 60fea52af1
8 changed files with 85 additions and 56 deletions

View File

@@ -52,7 +52,9 @@ FilePanel::FilePanel () : parent(NULL) {
tpc = new BatchToolPanelCoordinator (this);
fileCatalog = new FileCatalog (tpc->coarse, tpc->getToolBar());
dirpaned->pack2 (*fileCatalog, true, true);
ribbonPane = new Gtk::Paned();
ribbonPane->add(*fileCatalog);
dirpaned->pack2 (*ribbonPane, true, true);
placesBrowser->setDirBrowserRemoteInterface (dirBrowser);
recentBrowser->setDirBrowserRemoteInterface (dirBrowser);
@@ -225,18 +227,4 @@ bool FilePanel::handleShortcutKey (GdkEventKey* event) {
return true;
return false;
}
bool FilePanel::on_expose_event(GdkEventExpose* event)
{
if(!options.tabbedUI && dirpaned->get_children().size() ==1 ){
parent->epanel->catalogPane->remove(*fileCatalog);
fileCatalog->fileBrowser->setArrangement(ThumbBrowserBase::TB_Vertical);
dirpaned->pack2(*fileCatalog,true,true);
fileCatalog->redrawAll();
}
return Gtk::HPaned::on_expose_event(event);
}
}