mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-21 06:33:48 +00:00
show the widgets so that they appear on the screen
This commit is contained in:
parent
d6bd18b7dc
commit
1d6d94539e
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user