summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-03 14:32:44 +0100
committerTimm Bäder <mail@baedert.org>2018-01-03 17:11:32 +0100
commitcf9942e3cc701f873c0db01fe494e63abb98090f (patch)
tree08a9148533d4a0fdef02e86bb7ba2364394f50f5 /gtk/gtkmenuitem.c
parent3d9421509cf279d0bd387933b3b0a21a08731d48 (diff)
downloadgtk+-cf9942e3cc701f873c0db01fe494e63abb98090f.tar.gz
menuitem: Make a code snippet compile
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c2
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);