Second attempt to fix bug #59

This commit is contained in:
Hombre
2010-09-15 23:36:30 +02:00
parent b30a93116e
commit 3a59d404dd
9 changed files with 37 additions and 49 deletions

View File

@@ -101,6 +101,8 @@ FilePanel::FilePanel () : parent(NULL) {
pack1(*dirpaned, true, true);
pack2(*rightBox, true, true);
set_position(options.browserToolPanelWidth);
fileCatalog->setFileSelectionChangeListener (tpc);
fileCatalog->setFileSelectionListener (this);
@@ -109,12 +111,6 @@ FilePanel::FilePanel () : parent(NULL) {
show_all ();
}
void FilePanel::on_realize () {
Gtk::HPaned::on_realize ();
rightBox->set_size_request (options.browserToolPanelWidth, -1);
}
void FilePanel::init () {
dirBrowser->fillDirTree ();
@@ -167,7 +163,7 @@ void FilePanel::saveOptions () {
options.dirBrowserWidth = dirpaned->get_position ();
options.dirBrowserHeight = placespaned->get_position ();
options.browserToolPanelWidth = rightBox->get_width ();
options.browserToolPanelWidth = get_position();
if (options.startupDir==STARTUPDIR_LAST && fileCatalog->lastSelectedDir ()!="")
options.startupPath = fileCatalog->lastSelectedDir ();
fileCatalog->closeDir ();