show the widgets so that they appear on the screen

This commit is contained in:
pavlov%pavlov.net 1998-11-06 23:46:18 +00:00
parent d6bd18b7dc
commit 1d6d94539e
3 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

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