Correction of a small bug ; now the window remember it's (un)maximized state
This commit is contained in:
@@ -44,6 +44,7 @@ RTWindow::RTWindow () {
|
||||
else
|
||||
unmaximize();
|
||||
property_destroy_with_parent().set_value(false);
|
||||
signal_window_state_event().connect( sigc::mem_fun(*this, &RTWindow::on_window_state_event) );
|
||||
|
||||
mainNB = Gtk::manage (new Gtk::Notebook ());
|
||||
mainNB->set_scrollable (true);
|
||||
@@ -114,7 +115,7 @@ void RTWindow::on_realize () {
|
||||
cursorManager.init (get_window());
|
||||
}
|
||||
|
||||
bool RTWindow::on_my_window_state_event(GdkEventWindowState* event) {
|
||||
bool RTWindow::on_window_state_event(GdkEventWindowState* event) {
|
||||
if (!event->new_window_state) {
|
||||
// Window mode
|
||||
options.windowMaximized = false;
|
||||
|
@@ -52,7 +52,7 @@ class RTWindow : public Gtk::Window, public rtengine::ProgressListener{
|
||||
|
||||
bool keyPressed (GdkEventKey* event);
|
||||
bool on_delete_event(GdkEventAny* event);
|
||||
bool on_my_window_state_event(GdkEventWindowState* event);
|
||||
bool on_window_state_event(GdkEventWindowState* event);
|
||||
void on_mainNB_switch_page(GtkNotebookPage* page, guint page_num);
|
||||
|
||||
void imageDeveloped (Glib::ustring fname); // called by the batchqueue when it finishes an image
|
||||
|
Reference in New Issue
Block a user