[gtk+/wip/baedert/drawing: 55/71] modelmenuitem: Fix type checking assertions



commit f7b2dd7c001d395a2741b8d615d47a1c4a4b3ab3
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]