X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb1c9fb0c22fac2924c1eef6cb88eca4ee375c2..028e7716ef44f926c5fc04c2e484ef86bb8760ed:/src/gtk1/toplevel.cpp diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index 045a1ec022..aa4e7ee76e 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -622,7 +622,8 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK() bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style ) { - if (show == m_fsIsShowing) return FALSE; // return what? + if (show == m_fsIsShowing) + return FALSE; // return what? m_fsIsShowing = show; @@ -641,9 +642,11 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style ) gtk_window_fullscreen( GTK_WINDOW( m_widget ) ); else gtk_window_unfullscreen( GTK_WINDOW( m_widget ) ); + + return TRUE; } else -#else +#endif // GTK+ >= 2.2.0 { GdkWindow *window = m_widget->window; @@ -701,7 +704,6 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style ) m_fsSaveFrame.width, m_fsSaveFrame.height); } } -#endif return TRUE; }