diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-30 17:09:13 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-30 17:09:13 +0000 |
commit | adef99d4c26d554961858276225d1ac35349d5cc (patch) | |
tree | ded6bcad51f54304e35e158c5874d3bc158232e9 /gtk/gtkcombobox.c | |
parent | 681afb7b6a36b86f03bb20e63ad4d45f99aba07c (diff) | |
download | gtk+-adef99d4c26d554961858276225d1ac35349d5cc.tar.gz |
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)
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 8fd4a77807..11d85358cb 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -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; |