we don't need the mAlign thing anymore since we have an event box

git-svn-id: svn://10.0.0.236/trunk@33261 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
1999-05-30 02:09:42 +00:00
parent 8e4539c047
commit cd573f406c
2 changed files with 3 additions and 10 deletions

View File

@@ -304,20 +304,15 @@ nsresult nsComboBox::QueryInterface(const nsIID& aIID, void** aInstancePtr)
//-------------------------------------------------------------------------
NS_METHOD nsComboBox::CreateNative(GtkWidget *parentWindow)
{
/* there is a bug in gtkcombo
add it inside an alignment set the usize on it..
(set xscale yscale for the alignment to 1.0)
*/
mWidget = ::gtk_event_box_new();
mAlign = ::gtk_alignment_new(1.0,1.0,1.0,1.0);
::gtk_widget_set_name(mWidget, "nsComboBox");
mCombo = ::gtk_combo_new();
gtk_widget_show(mCombo);
gtk_widget_show(mAlign);
/* make the stuff uneditable */
gtk_entry_set_editable(GTK_ENTRY(GTK_COMBO(mCombo)->entry), PR_FALSE);
gtk_container_add(GTK_CONTAINER(mAlign), mCombo);
gtk_signal_connect(GTK_OBJECT(mCombo),
"destroy",
GTK_SIGNAL_FUNC(DestroySignal),
@@ -327,7 +322,7 @@ NS_METHOD nsComboBox::CreateNative(GtkWidget *parentWindow)
GTK_SIGNAL_FUNC(UnmapSignal),
this);
gtk_container_add(GTK_CONTAINER(mWidget), mAlign);
gtk_container_add(GTK_CONTAINER(mWidget), mCombo);
return NS_OK;
}

View File

@@ -66,8 +66,6 @@ protected:
virtual void OnUnmapSignal(GtkWidget* aWidget);
static gint UnmapSignal(GtkWidget* aGtkWidget, nsComboBox* aCombo);
GtkWidget *mAlign; /* workaround for gtkcombo bug */
GtkWidget *mCombo; /* workaround for gtkcombo bug */
GList *mItems;
PRBool mMultiSelect;