Fix bug #59, at least on Windows

This commit is contained in:
Hombre
2010-09-15 16:46:56 +02:00
parent ee994d36e9
commit b30a93116e
4 changed files with 27 additions and 13 deletions

View File

@@ -39,6 +39,10 @@ RTWindow::RTWindow () {
set_default_size(options.windowWidth, options.windowHeight);
set_modal(false);
set_resizable(true);
if (options.windowMaximized)
maximize();
else
unmaximize();
property_destroy_with_parent().set_value(false);
mainNB = Gtk::manage (new Gtk::Notebook ());
@@ -220,8 +224,14 @@ bool RTWindow::on_delete_event(GdkEventAny* event) {
options.fbArrangement = fileBrowser->getFileCatalog()->getArrangement ();
options.firstRun = false;
*/
//options.windowWidth = get_width();
//options.windowHeight = get_height();
Gdk::WindowState state = get_window()->get_state();
if (!(state & (Gdk::WINDOW_STATE_MAXIMIZED | Gdk::WINDOW_STATE_FULLSCREEN))) {
options.windowWidth = get_width();
options.windowHeight = get_height();
options.windowMaximized = false;
}
else
options.windowMaximized = true;
Options::save ();