mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
entry: Remove some questionable code examples
This commit is contained in:
parent
614bcefa21
commit
5cd138f0f2
@ -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:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* 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:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* 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:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* 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:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user