ShowFullScreen() shows the window if it was still hidden (modified patch 1231514)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,6 +29,10 @@ wxWinCE:
|
||||
|
||||
- RTTI and exceptions enabled by default.
|
||||
|
||||
wxGTK:
|
||||
|
||||
- ShowFullScreen() shows the window if it was still hidden (rpedroso)
|
||||
|
||||
wxOS2
|
||||
|
||||
- Adjustments for building with Open Watcom C++.
|
||||
@@ -38,6 +42,7 @@ wxUniv:
|
||||
- Window creation now honours wxVSCROLL.
|
||||
- Standalone scrollbars generate events of correct type (Jochen Roemmler)
|
||||
|
||||
|
||||
2.6.1
|
||||
-----
|
||||
|
||||
|
@@ -690,8 +690,6 @@ 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
|
||||
#endif // GTK+ >= 2.2.0
|
||||
@@ -732,7 +730,7 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
|
||||
(WXWindow)GDK_WINDOW_XWINDOW(window),
|
||||
show, &m_fsSaveFrame, method);
|
||||
}
|
||||
else
|
||||
else // hide
|
||||
{
|
||||
if (method != wxX11_FS_WMSPEC)
|
||||
{
|
||||
@@ -753,6 +751,11 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
|
||||
}
|
||||
}
|
||||
|
||||
// documented behaviour is to show the window if it's still hidden when
|
||||
// showing it full screen
|
||||
if ( show && !IsShown() )
|
||||
Show();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -690,8 +690,6 @@ 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
|
||||
#endif // GTK+ >= 2.2.0
|
||||
@@ -732,7 +730,7 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
|
||||
(WXWindow)GDK_WINDOW_XWINDOW(window),
|
||||
show, &m_fsSaveFrame, method);
|
||||
}
|
||||
else
|
||||
else // hide
|
||||
{
|
||||
if (method != wxX11_FS_WMSPEC)
|
||||
{
|
||||
@@ -753,6 +751,11 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long style )
|
||||
}
|
||||
}
|
||||
|
||||
// documented behaviour is to show the window if it's still hidden when
|
||||
// showing it full screen
|
||||
if ( show && !IsShown() )
|
||||
Show();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user