Mitigated GTK fullscreen bug on Windows

see issue 82
This commit is contained in:
Oliver Duis 2011-06-12 12:18:38 +02:00
parent 08a7886e27
commit 50aa487f63
3 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
epih->pending = 0;
processingStartedTime = 0;
firstProcessingDone = false;
// construct toolpanelcoordinator
tpc = new ToolPanelCoordinator ();
@ -609,6 +610,11 @@ void EditorPanel::refreshProcessingState (bool inProcessingP) {
// Set progress bar "done"
s->str = "PROGRESSBAR_READY";
s->val = 1.0;
#ifdef WIN32
if (!firstProcessingDone && (RTWindow*)parent->getIsFullscreen()) { parent->fullscreen(); }
#endif
firstProcessingDone = true;
}
isProcessing=inProcessingP;

View File

@ -94,6 +94,7 @@ class EditorPanel : public Gtk::VBox,
BatchToolPanelCoordinator* btpCoordinator;
FilePanel* fPanel;
bool firstProcessingDone;
Thumbnail* openThm; // may get invalid on external delete event
Glib::ustring fname; // must be safed seperately

View File

@ -77,6 +77,8 @@ class RTWindow : public Gtk::Window, public rtengine::ProgressListener{
void SetMainCurrent();
void MoveFileBrowserToEditor();
void MoveFileBrowserToMain();
bool getIsFullscreen() { return is_fullscreen; }
};
#endif