modelmenuitem: Fix type checking assertions

GtkAccelLabel is not a GtkLabel anymore
This commit is contained in:
Timm Bäder 2017-06-05 11:25:21 +02:00 committed by Matthias Clasen
parent 34f6f9bfe6
commit e2ce407f2c

View File

@ -150,7 +150,7 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
{
gtk_menu_item_get_label (GTK_MENU_ITEM (item));
child = gtk_bin_get_child (GTK_BIN (item));
g_assert (GTK_IS_LABEL (child));
g_assert (GTK_IS_ACCEL_LABEL (child));
}
/* If it is a box, make sure there are no images inside of it already.
@ -244,7 +244,7 @@ gtk_model_menu_item_set_text (GtkModelMenuItem *item,
{
gtk_menu_item_get_label (GTK_MENU_ITEM (item));
child = gtk_bin_get_child (GTK_BIN (item));
g_assert (GTK_IS_LABEL (child));
g_assert (GTK_IS_ACCEL_LABEL (child));
}
if (GTK_IS_LABEL (child))