diff --git a/widget/src/gtk/nsButton.cpp b/widget/src/gtk/nsButton.cpp index aeabc5a1f44b..16c368e545d6 100644 --- a/widget/src/gtk/nsButton.cpp +++ b/widget/src/gtk/nsButton.cpp @@ -61,7 +61,8 @@ NS_METHOD nsButton::Create(nsIWidget *aParent, InitDeviceContext(aContext, parentWidget); mWidget = gtk_button_new_with_label(""); - gtk_layout_put(GTK_LAYOUT(aParent), mWidget, aRect.x, aRect.y); + gtk_widget_show(mWidget); + gtk_layout_put(GTK_LAYOUT(parentWidget), mWidget, aRect.x, aRect.y); /* mWidget = ::XtVaCreateManagedWidget("button", xmPushButtonWidgetClass, diff --git a/widget/src/gtk/nsLabel.cpp b/widget/src/gtk/nsLabel.cpp index 206d25306298..89325e6004af 100644 --- a/widget/src/gtk/nsLabel.cpp +++ b/widget/src/gtk/nsLabel.cpp @@ -68,6 +68,7 @@ NS_METHOD nsLabel::Create(nsIWidget *aParent, unsigned char alignment = GetNativeAlignment(); mWidget = gtk_label_new(""); + gtk_widget_show(mWidget); // gtk_misc_set_alignment(GTK_MISC(mWidget), alignment); gtk_layout_put(GTK_LAYOUT(aParent), mWidget, aRect.x, aRect.y); diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 5dc21a53b948..5a42d2b335cc 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -42,6 +42,8 @@ #define DBG 0 +#define DEBUG_pavlov 1 + GtkWidget *gFirstTopLevelWindow = 0; //XXX: REMOVE Kludge should not be needed. static NS_DEFINE_IID(kIWidgetIID, NS_IWIDGET_IID);