How to add GtkCheckMenuItem to GtkMenu

1. create
2. create a
3. on the callback of activate signal, you can get if
GtkMenu()as usual: add
GtkMenuBar()to the window, create a
GtkMenu(), add
GtkMenuItem();
2. create a
GtkCheckMenuItem()with
GtkCheckMenuItem::new_with_label($label);
3. on the callback of activate signal, you can get if
GtkCheckMenuItem()is checked or not by using
GtkCheckMenuItem::get_active();