Don't segfault if somebody tries to popup an unrealized combo box.
2005-03-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_popup): Don't segfault if somebody tries to popup an unrealized combo box. (#172031, Felipe Heidrich)
This commit is contained in:

committed by
Matthias Clasen

parent
681afb7b6a
commit
adef99d4c2
@ -1590,6 +1590,9 @@ gtk_combo_box_popup (GtkComboBox *combo_box)
|
||||
|
||||
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
|
||||
|
||||
if (!GTK_WIDGET_REALIZED (combo_box))
|
||||
return;
|
||||
|
||||
if (GTK_WIDGET_MAPPED (combo_box->priv->popup_widget))
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user