зеркало из https://github.com/mozilla/pjs.git
Fix for the annoying misplaced corner view who sometimes appears on the
bottom right corner. Bug #4319.
This commit is contained in:
Родитель
7635a79a1c
Коммит
36b16e3f69
|
@ -155,10 +155,18 @@ NS_METHOD nsWidget::Show(PRBool bState)
|
|||
return NS_OK; // Will be null durring printing
|
||||
|
||||
if (bState)
|
||||
{
|
||||
::gtk_widget_show(mWidget);
|
||||
}
|
||||
else
|
||||
{
|
||||
::gtk_widget_hide(mWidget);
|
||||
|
||||
// For some strange reason, gtk_widget_hide() does not seem to
|
||||
// unmap the window.
|
||||
::gtk_widget_unmap(mWidget);
|
||||
}
|
||||
|
||||
mShown = bState;
|
||||
|
||||
return NS_OK;
|
||||
|
@ -174,6 +182,18 @@ NS_METHOD nsWidget::IsVisible(PRBool &aState)
|
|||
else
|
||||
aState = PR_TRUE;
|
||||
|
||||
//
|
||||
// Why isnt the following good enough ? -ramiro
|
||||
//
|
||||
// if (nsnull != mWidget)
|
||||
// {
|
||||
// aState = GTK_WIDGET_VISIBLE(mWidget);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// aState = PR_FALSE;
|
||||
// }
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче