[gtk+/wip/baedert/drawing: 390/396] modelmenuitem: Update indicator visibility when has_indicator changes



commit 240161dbaced8a23f0eccd9fb33c6cce3094169c
Author: Timm Bäder <mail baedert org>
Date:   Sun Jul 16 17:19:41 2017 +0200

    modelmenuitem: Update indicator visibility when has_indicator changes

 gtk/gtkmodelmenuitem.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 8d0e0a6..e04ae18 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -76,7 +76,8 @@ gtk_model_menu_item_set_has_indicator (GtkModelMenuItem *item,
 
   item->has_indicator = has_indicator;
 
-  gtk_widget_queue_resize (GTK_WIDGET (item));
+  gtk_widget_set_visible (_gtk_check_menu_item_get_indicator_widget (GTK_CHECK_MENU_ITEM (item)),
+                          item->has_indicator);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]