From 9dddb0ee14804a25f1bf58f87d91eb92429cc939 Mon Sep 17 00:00:00 2001 From: "msw%gimp.org" Date: Sat, 7 Nov 1998 18:43:17 +0000 Subject: [PATCH] Oops - not using this. --- widget/src/gtk/nsButton.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/widget/src/gtk/nsButton.cpp b/widget/src/gtk/nsButton.cpp index a177c4940a8..375e82436a8 100644 --- a/widget/src/gtk/nsButton.cpp +++ b/widget/src/gtk/nsButton.cpp @@ -47,8 +47,6 @@ NS_METHOD nsButton::Create(nsIWidget *aParent, nsIToolkit *aToolkit, nsWidgetInitData *aInitData) { - GtkRequisition size; - aParent->AddChild(this); GtkWidget *parentWidget = nsnull; @@ -62,8 +60,6 @@ NS_METHOD nsButton::Create(nsIWidget *aParent, InitDeviceContext(aContext, parentWidget); mWidget = gtk_button_new_with_label(""); - size.width = aRect.width; - size.height = aRect.height; gtk_widget_set_usize(GTK_WIDGET(mWidget), aRect.width, aRect.height); gtk_widget_show(mWidget);