summaryrefslogtreecommitdiff
path: root/gtk/gtkmodelmenuitem.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-06-05 11:25:21 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:13 -0400
commite2ce407f2cb045f92d22fd4b95840a44c6ee0781 (patch)
treecc670495a3ce6650de6f96d82526254508148eaf /gtk/gtkmodelmenuitem.c
parent34f6f9bfe652764dfeee34b5bde0e7b4adaeb798 (diff)
downloadgtk+-e2ce407f2cb045f92d22fd4b95840a44c6ee0781.tar.gz
modelmenuitem: Fix type checking assertions
GtkAccelLabel is not a GtkLabel anymore
Diffstat (limited to 'gtk/gtkmodelmenuitem.c')
-rw-r--r--gtk/gtkmodelmenuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 2cf12eff8c..0083452edf 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -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))