summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-15 16:49:45 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-19 16:08:07 +0200
commit9ee3d73a19f71492b6cba77b1e9fa42e3461fdd3 (patch)
tree6f9e1b81e9364fbe4bcf8da2c9123e1f7f56c5d0 /gtk/gtkcheckmenuitem.c
parent1af1362a369bb79deaeec8d5bf580c97df6c0c87 (diff)
downloadgtk+-9ee3d73a19f71492b6cba77b1e9fa42e3461fdd3.tar.gz
Add _gtk_check_menu_item_set_active() internal function
It's needed by gtkradiomenuitem Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624432
Diffstat (limited to 'gtk/gtkcheckmenuitem.c')
-rw-r--r--gtk/gtkcheckmenuitem.c20
1 files changed, 20 insertions, 0 deletions
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;
+}