summaryrefslogtreecommitdiff
path: root/gtk/gtkaccellabel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-14 23:34:22 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-14 23:34:22 -0500
commitc779b42476ef0e33a22c13104b0b9351c370d71c (patch)
treef6bd9f652cdedad52b54168ebbacc69f7261e541 /gtk/gtkaccellabel.c
parente179c65da037a2354cc8db4f824590014ef8bc87 (diff)
downloadgtk+-c779b42476ef0e33a22c13104b0b9351c370d71c.tar.gz
Docs: use // for comments in examples
Without sgml mode, we can't escape /* as /&ast; anymore, so just switch to // for comments in examples.
Diffstat (limited to 'gtk/gtkaccellabel.c')
-rw-r--r--gtk/gtkaccellabel.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 462aeac2e4..d37a7c5a64 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -72,21 +72,20 @@
* GtkWidget *save_item;
* GtkAccelGroup *accel_group;
*
- * /&ast; Create a GtkAccelGroup and add it to the window. &ast;/
+ * // Create a GtkAccelGroup and add it to the window.
* accel_group = gtk_accel_group_new ();
* gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
*
- * /&ast; Create the menu item using the convenience function. &ast;/
+ * // Create the menu item using the convenience function.
* save_item = gtk_menu_item_new_with_label ("Save");
* gtk_widget_show (save_item);
* gtk_container_add (GTK_CONTAINER (menu), save_item);
*
- * /&ast; Now add the accelerator to the GtkMenuItem. Note that since we
- * &ast; called gtk_menu_item_new_with_label() to create the GtkMenuItem
- * &ast; the GtkAccelLabel is automatically set up to display the
- * &ast; GtkMenuItem accelerators. We just need to make sure we use
- * &ast; GTK_ACCEL_VISIBLE here.
- * &ast;/
+ * // Now add the accelerator to the GtkMenuItem. Note that since we
+ * // called gtk_menu_item_new_with_label() to create the GtkMenuItem
+ * // the GtkAccelLabel is automatically set up to display the
+ * // GtkMenuItem accelerators. We just need to make sure we use
+ * // GTK_ACCEL_VISIBLE here.
* gtk_widget_add_accelerator (save_item, "activate", accel_group,
* GDK_KEY_s, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
* ]|