summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-01-08 00:04:57 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-01-08 00:04:57 +0000
commitc1808baa01e7db5e304a857132087e496641726a (patch)
tree7f7af3dece9f8d380eeab17ce26ad17519c181f8 /gtk/gtkdialog.c
parent947c91dca741232a76aca65173cabefae9d70855 (diff)
downloadgtk+-c1808baa01e7db5e304a857132087e496641726a.tar.gz
Doc typo fix. (#68172)
* gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172) * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs. * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document. * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs. * gtk/gtkrc.c (gtk_rc_get_style_by_paths), gtk/gtkwidget.c (gtk_widget_get_toplevel, gtk_widget_push_composite_child), gtk/gtkdialog.c (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc from messing up the indentation of inline examples. * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() instead of getenv(). * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c, gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c, gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes. * gtk/gtkaccelmap.c (gtk_accel_map_add_filter, gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner): Document. * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id() instead of GTK_WINDOW_XWINDOW(). (#68172) * gtk/gtk-sections.txt: Move functions which are documented as "private" or "internal" into Private subsections. * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml, gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml, gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtkfeatures.sgml: Minor markup fixes. * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs. * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc. * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 707edbb3ab..dec95d5245 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -386,14 +386,14 @@ gtk_dialog_new_empty (const gchar *title,
*
* Here's a simple example:
* <informalexample><programlisting>
- * GtkWidget *dialog = gtk_dialog_new_with_buttons ("My dialog",
- * main_app_window,
- * GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
- * GTK_STOCK_OK,
- * GTK_RESPONSE_ACCEPT,
- * GTK_STOCK_CANCEL,
- * GTK_RESPONSE_REJECT,
- * NULL);
+ * <!>GtkWidget *dialog = gtk_dialog_new_with_buttons ("My dialog",
+ * <!> main_app_window,
+ * <!> GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+ * <!> GTK_STOCK_OK,
+ * <!> GTK_RESPONSE_ACCEPT,
+ * <!> GTK_STOCK_CANCEL,
+ * <!> GTK_RESPONSE_REJECT,
+ * <!> NULL);
* </programlisting></informalexample>
*
* Return value: a new #GtkDialog
@@ -851,17 +851,17 @@ run_destroy_handler (GtkDialog *dialog, gpointer data)
*
* Typical usage of this function might be:
* <informalexample><programlisting>
- * gint result = gtk_dialog_run (GTK_DIALOG (dialog));
- * switch (result)
- * {
- * case GTK_RESPONSE_ACCEPT:
- * do_application_specific_something (<!-- -->);
- * break;
- * default:
- * do_nothing_since_dialog_was_cancelled (<!-- -->);
- * break;
- * }
- * gtk_widget_destroy (dialog);
+ * <!> gint result = gtk_dialog_run (GTK_DIALOG (dialog));
+ * <!> switch (result)
+ * <!> {
+ * <!> case GTK_RESPONSE_ACCEPT:
+ * <!> do_application_specific_something (<!-- -->);
+ * <!> break;
+ * <!> default:
+ * <!> do_nothing_since_dialog_was_cancelled (<!-- -->);
+ * <!> break;
+ * <!> }
+ * <!> gtk_widget_destroy (dialog);
* </programlisting></informalexample>
*
* Return value: response ID