[gtk+/wip/baedert/drawing: 256/306] modelmenuitem: Fix type checking assertions
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 256/306] modelmenuitem: Fix type checking assertions
- Date: Fri, 23 Jun 2017 20:18:27 +0000 (UTC)
commit 1d4679d1b2585b4b1856f4bcece2dd0dc223e8ff
Author: Timm Bäder <mail baedert org>
Date: Mon Jun 5 11:25:21 2017 +0200
modelmenuitem: Fix type checking assertions
GtkAccelLabel is not a GtkLabel anymore
gtk/gtkmodelmenuitem.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 2cf12ef..0083452 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]