diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-12 16:09:09 -0500 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-12 18:42:50 -0500 |
commit | 37a8ee6e952fb8c837ffbabfe3a5068b08e75b13 (patch) | |
tree | d48dc51ab27f65571678687ef1d254f4caa85d32 /gtk/gtkrecentchooserdialog.c | |
parent | 74c48203f0a790ae6b6bb33cf7cf6ed2c3a4d3d5 (diff) | |
download | gtk+-37a8ee6e952fb8c837ffbabfe3a5068b08e75b13.tar.gz |
docs: fully break lines in examples
Try to do a better job of keeping example content
from being too wide. It is often rendered as <pre>
text so the only time we can wrap it is in the source.
It is best to full break lines at all punctuation and
to try to keep the width under 70 chars or so.
Diffstat (limited to 'gtk/gtkrecentchooserdialog.c')
-rw-r--r-- | gtk/gtkrecentchooserdialog.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtkrecentchooserdialog.c b/gtk/gtkrecentchooserdialog.c index 8a5b98f61e..00382f3aea 100644 --- a/gtk/gtkrecentchooserdialog.c +++ b/gtk/gtkrecentchooserdialog.c @@ -51,18 +51,23 @@ * * |[<!-- language="C" --> * GtkWidget *dialog; + * gint res; * * dialog = gtk_recent_chooser_dialog_new ("Recent Documents", * parent_window, - * _("_Cancel"), GTK_RESPONSE_CANCEL, - * _("_Open"), GTK_RESPONSE_ACCEPT, + * _("_Cancel"), + * GTK_RESPONSE_CANCEL, + * _("_Open"), + * GTK_RESPONSE_ACCEPT, * NULL); * - * if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) + * res = gtk_dialog_run (GTK_DIALOG (dialog)); + * if (res == GTK_RESPONSE_ACCEPT) * { * GtkRecentInfo *info; + * GtkRecentChooser *chooser = GTK_RECENT_CHOOSER (dialog); * - * info = gtk_recent_chooser_get_current_item (GTK_RECENT_CHOOSER (dialog)); + * info = gtk_recent_chooser_get_current_item (chooser); * open_file (gtk_recent_info_get_uri (info)); * gtk_recent_info_unref (info); * } |