From 9ee3d73a19f71492b6cba77b1e9fa42e3461fdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 15 Jul 2010 16:49:45 +0200 Subject: Add _gtk_check_menu_item_set_active() internal function It's needed by gtkradiomenuitem Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624432 --- gtk/gtkcheckmenuitem.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gtk/gtkcheckmenuitem.c') diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c index 32bebf7e39..55aa8f4873 100644 --- a/gtk/gtkcheckmenuitem.c +++ b/gtk/gtkcheckmenuitem.c @@ -586,3 +586,23 @@ gtk_check_menu_item_set_property (GObject *object, break; } } + + +/* Private */ + +/* + * _gtk_check_menu_item_set_active: + * @check_menu_item: a #GtkCheckMenuItem + * @is_active: whether the action is active or not + * + * Sets the #GtkCheckMenuItem:active property directly. This function does + * not emit signals or notifications: it is left to the caller to do so. + */ +void +_gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, + gboolean is_active) +{ + GtkCheckMenuItemPriv *priv = check_menu_item->priv; + + priv->active = is_active; +} -- cgit v1.2.1