menuitem: Make a code snippet compile

This commit is contained in:
Timm Bäder 2018-01-03 14:32:44 +01:00
parent 3d9421509c
commit cf9942e3cc

View File

@ -68,6 +68,8 @@
*
* An example for setting markup and accelerator on a MenuItem:
* |[<!-- language="C" -->
* GtkWidget *menu_item = gtk_menu_item_new_with_label ("Example Menu Item");
*
* GtkWidget *child = gtk_bin_get_child (GTK_BIN (menu_item));
* gtk_label_set_markup (GTK_LABEL (child), "<i>new label</i> with <b>markup</b>");
* gtk_accel_label_set_accel (GTK_ACCEL_LABEL (child), GDK_KEY_1, 0);