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/gtkentry.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/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 48a0be3afe..a79ccd0a3d 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -7737,7 +7737,9 @@ gtk_entry_get_overwrite_mode (GtkEntry *entry) * This is equivalent to: * * |[<!-- language="C" --> - * gtk_entry_buffer_get_text (gtk_entry_get_buffer (entry)); + * GtkEntryBuffer *buffer; + * buffer = gtk_entry_get_buffer (entry); + * gtk_entry_buffer_get_text (buffer); * ]| * * Return value: a pointer to the contents of the widget as a @@ -7759,7 +7761,7 @@ gtk_entry_get_text (GtkEntry *entry) * @max: the maximum length of the entry, or 0 for no maximum. * (other than the maximum length of entries.) The value passed in will * be clamped to the range 0-65536. - * + * * Sets the maximum allowed length of the contents of the widget. If * the current contents are longer than the given length, then they * will be truncated to fit. @@ -7767,7 +7769,9 @@ gtk_entry_get_text (GtkEntry *entry) * This is equivalent to: * * |[<!-- language="C" --> - * gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (entry), max); + * GtkEntryBuffer *buffer; + * buffer = gtk_entry_get_buffer (entry); + * gtk_entry_buffer_set_max_length (buffer, max); * ]| **/ void @@ -7788,7 +7792,9 @@ gtk_entry_set_max_length (GtkEntry *entry, * This is equivalent to: * * |[<!-- language="C" --> - * gtk_entry_buffer_get_max_length (gtk_entry_get_buffer (entry)); + * GtkEntryBuffer *buffer; + * buffer = gtk_entry_get_buffer (entry); + * gtk_entry_buffer_get_max_length (buffer); * ]| * * Return value: the maximum allowed number of characters @@ -7812,7 +7818,9 @@ gtk_entry_get_max_length (GtkEntry *entry) * This is equivalent to: * * |[<!-- language="C" --> - * gtk_entry_buffer_get_length (gtk_entry_get_buffer (entry)); + * GtkEntryBuffer *buffer; + * buffer = gtk_entry_get_buffer (entry); + * gtk_entry_buffer_get_length (buffer); * ]| * * Return value: the current number of characters |