Commit adef99d4 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 681afb7b
...@@ -1590,6 +1590,9 @@ gtk_combo_box_popup (GtkComboBox *combo_box) ...@@ -1590,6 +1590,9 @@ gtk_combo_box_popup (GtkComboBox *combo_box)
g_return_if_fail (GTK_IS_COMBO_BOX (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)) if (GTK_WIDGET_MAPPED (combo_box->priv->popup_widget))
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment