summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.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/gtkdialog.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/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 806f8ed9d7..5eb83b9da4 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -100,14 +100,14 @@
*
* An example for simple GtkDialog usage:
* |[<!-- language="C" -->
- * /&ast; Function to open a dialog box with a message &ast;/
+ * // Function to open a dialog box with a message
* void
* quick_message (GtkWindow *parent, gchar *message)
* {
* GtkWidget *dialog, *label, *content_area;
* GtkDialogFlags flags;
*
- * /&ast; Create the widgets &ast;/
+ * // Create the widgets
* flags = GTK_DIALOG_DESTROY_WITH_PARENT;
* dialog = gtk_dialog_new_with_buttons ("Message",
* parent,
@@ -118,15 +118,14 @@
* content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
* label = gtk_label_new (message);
*
- * /&ast; Ensure that the dialog box is destroyed when the user
- * responds &ast;/
+ * // Ensure that the dialog box is destroyed when the user responds
*
* g_signal_connect_swapped (dialog,
* "response",
* G_CALLBACK (gtk_widget_destroy),
* dialog);
*
- * /&ast; Add the label, and show everything we’ve added &ast;/
+ * // Add the label, and show everything we’ve added
*
* gtk_container_add (GTK_CONTAINER (content_area), label);
* gtk_widget_show_all (dialog);