diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-03 14:32:44 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-03 17:11:32 +0100 |
commit | cf9942e3cc701f873c0db01fe494e63abb98090f (patch) | |
tree | 08a9148533d4a0fdef02e86bb7ba2364394f50f5 /gtk/gtkmenuitem.c | |
parent | 3d9421509cf279d0bd387933b3b0a21a08731d48 (diff) | |
download | gtk+-cf9942e3cc701f873c0db01fe494e63abb98090f.tar.gz |
menuitem: Make a code snippet compile
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 4b5ce1244b..4573817064 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -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); |