#ifdef around some recent gtk changes

This commit is contained in:
pavlov%pavlov.net 1999-01-14 23:02:50 +00:00
Родитель 7a3e843b8a
Коммит efdfec098b
3 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -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)