summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-03-30 17:10:47 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-30 17:10:47 +0000
commitb3cdfe0c19f033ebcde9b8cfac86cda669737a8a (patch)
tree571eea1343d383ebe52ca1363dc5157df8300e62 /gtk/gtkcombobox.c
parent84f00317a8b521a1b2a85263fa4a7135eef16f91 (diff)
downloadgdk-pixbuf-b3cdfe0c19f033ebcde9b8cfac86cda669737a8a.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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index c9f8967fa..d1e83bb68 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1589,6 +1589,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;