summaryrefslogtreecommitdiff
path: root/gtk/deprecated
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-30 17:32:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-03-30 17:32:38 -0400
commit577195a243686a50f0a06d7b6b2ec598db3d2d1e (patch)
treed0d550629879c1cc8f23ed9a9ce252298cd55812 /gtk/deprecated
parent2650c4e974cdeefff3656f9e9cbd2df2eb9725a9 (diff)
downloadgtk+-577195a243686a50f0a06d7b6b2ec598db3d2d1e.tar.gz
Make widget property setters behave
We want to allow setting a property to its current value, while still having a precondition for widget->parent being NULL otherwise.
Diffstat (limited to 'gtk/deprecated')
-rw-r--r--gtk/deprecated/gtkcombobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/deprecated/gtkcombobox.c b/gtk/deprecated/gtkcombobox.c
index 1e76b38f41..2be8d3b784 100644
--- a/gtk/deprecated/gtkcombobox.c
+++ b/gtk/deprecated/gtkcombobox.c
@@ -3033,7 +3033,7 @@ gtk_combo_box_set_child (GtkComboBox *combo_box,
GtkComboBoxPrivate *priv = gtk_combo_box_get_instance_private (combo_box);
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
- g_return_if_fail (child == NULL || GTK_IS_WIDGET (child));
+ g_return_if_fail (child == NULL || gtk_widget_get_parent (child) == NULL);
if (priv->child)
gtk_combo_box_remove (combo_box, priv->child);