From 5cd138f0f2812c7f7e1f31a29b640446f87a0caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 3 Jan 2018 16:39:31 +0100 Subject: [PATCH] entry: Remove some questionable code examples --- gtk/gtkentry.c | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 88c9537e7e..7ecec902e4 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -7093,13 +7093,8 @@ gtk_entry_get_overwrite_mode (GtkEntry *entry) * Retrieves the contents of the entry widget. * See also gtk_editable_get_chars(). * - * This is equivalent to: - * - * |[ - * GtkEntryBuffer *buffer; - * buffer = gtk_entry_get_buffer (entry); - * gtk_entry_buffer_get_text (buffer); - * ]| + * This is equivalent to getting @entry's #GtkEntryBuffer and calling + * gtk_entry_buffer_get_text() on it. * * Returns: a pointer to the contents of the widget as a * string. This string points to internally allocated @@ -7125,12 +7120,8 @@ gtk_entry_get_text (GtkEntry *entry) * the current contents are longer than the given length, then they * will be truncated to fit. * - * This is equivalent to: - * - * |[ - * GtkEntryBuffer *buffer; - * buffer = gtk_entry_get_buffer (entry); - * gtk_entry_buffer_set_max_length (buffer, max); + * This is equivalent to getting @entry's #GtkEntryBuffer and + * calling gtk_entry_buffer_set_max_length() on it. * ]| **/ void @@ -7148,13 +7139,8 @@ gtk_entry_set_max_length (GtkEntry *entry, * Retrieves the maximum allowed length of the text in * @entry. See gtk_entry_set_max_length(). * - * This is equivalent to: - * - * |[ - * GtkEntryBuffer *buffer; - * buffer = gtk_entry_get_buffer (entry); - * gtk_entry_buffer_get_max_length (buffer); - * ]| + * This is equivalent to getting @entry's #GtkEntryBuffer and + * calling gtk_entry_buffer_get_max_length() on it. * * Returns: the maximum allowed number of characters * in #GtkEntry, or 0 if there is no maximum. @@ -7174,13 +7160,9 @@ gtk_entry_get_max_length (GtkEntry *entry) * Retrieves the current length of the text in * @entry. * - * This is equivalent to: - * - * |[ - * GtkEntryBuffer *buffer; - * buffer = gtk_entry_get_buffer (entry); - * gtk_entry_buffer_get_length (buffer); - * ]| + * This is equivalent to getting @entry's #GtkEntryBuffer and + * calling gtk_entry_buffer_get_length() on it. + * * Returns: the current number of characters * in #GtkEntry, or 0 if there are none.