зеркало из https://github.com/mozilla/pjs.git
#ifdef around some recent gtk changes
This commit is contained in:
Родитель
7a3e843b8a
Коммит
efdfec098b
|
@ -87,7 +87,11 @@ nsresult nsCheckButton::QueryInterface(const nsIID& aIID, void** aInstancePtr)
|
|||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsCheckButton::SetState(const PRBool aState)
|
||||
{
|
||||
#ifdef GTK_HAVE_FEATURES_1_1_13
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mWidget), aState);
|
||||
#else
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(mWidget), aState);
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,11 @@ NS_METHOD nsRadioButton::CreateNative(GtkWidget *parentWindow)
|
|||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsRadioButton::SetState(const PRBool aState)
|
||||
{
|
||||
#ifdef GTK_HAVE_FEATURES_1_1_13
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mWidget), aState);
|
||||
#else
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(mWidget), aState);
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -181,9 +181,6 @@ NS_METHOD nsWidget::IsVisible(PRBool &aState)
|
|||
|
||||
NS_METHOD nsWidget::Move(PRUint32 aX, PRUint32 aY)
|
||||
{
|
||||
if (mBounds.x == aX && mBounds.y == aY)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
mBounds.x = aX;
|
||||
mBounds.y = aY;
|
||||
|
||||
|
@ -194,7 +191,6 @@ NS_METHOD nsWidget::Move(PRUint32 aX, PRUint32 aY)
|
|||
|
||||
NS_METHOD nsWidget::Resize(PRUint32 aWidth, PRUint32 aHeight, PRBool aRepaint)
|
||||
{
|
||||
|
||||
printf("nsWidget::Resize called.\n");
|
||||
|
||||
if (mBounds.width == aWidth && mBounds.height == aHeight)
|
||||
|
|
Загрузка…
Ссылка в новой задаче