Fix stupid error introduced last night that was making things decidedly
Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error introduced last night that was making things decidedly not work. * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters so that we have getter/setter pairing everywhere it makes sense. (#55767) * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.: Rename gtk_radio_button_group to gtk_radio_button_get_group, add a deprecated compat macro. (#55516) * gtk/gtklabel.[ch]: Add functions gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(), gtk_label_set_label(), which mirror the property API for GtkLabel. Make gtk_label_get_attributes() only reflect the attributes set by gtk_label_set_attributes. * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename from gtk_notebook_set_page().
This commit is contained in:
@ -3074,6 +3074,23 @@ gtk_entry_set_visibility (GtkEntry *entry,
|
||||
gtk_entry_recompute (entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_entry_get_visibility:
|
||||
* @entry: a #GtkEntry
|
||||
*
|
||||
* Retrieves whether the text in @entry is visible. See
|
||||
* gtk_entry_set_visibility().
|
||||
*
|
||||
* Return value: %TRUE if the text is currently visible
|
||||
**/
|
||||
gboolean
|
||||
gtk_entry_get_visibility (GtkEntry *entry)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_ENTRY (entry), FALSE);
|
||||
|
||||
return entry->visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_entry_set_invisible_char:
|
||||
* @entry: a #GtkEntry
|
||||
@ -3102,6 +3119,24 @@ gtk_entry_set_invisible_char (GtkEntry *entry,
|
||||
gtk_entry_recompute (entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_entry_get_invisible_char:
|
||||
* @entry: a #GtkEntry
|
||||
*
|
||||
* Retrieves the character displayed in place of the real characters
|
||||
* for entries with visisbility set to false. See gtk_entry_set_invisible_char().
|
||||
*
|
||||
* Return value: the current invisible char, or 0, if the entry does not
|
||||
* show invisible text at all.
|
||||
**/
|
||||
gunichar
|
||||
gtk_entry_get_invisible_char (GtkEntry *entry)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_ENTRY (entry), 0);
|
||||
|
||||
return entry->invisible_char;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_entry_set_editable(GtkEntry *entry,
|
||||
gboolean editable)
|
||||
@ -3143,6 +3178,24 @@ gtk_entry_set_max_length (GtkEntry *entry,
|
||||
g_object_notify (G_OBJECT (entry), "max_length");
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_entry_get_max_length:
|
||||
* @entry: a #GtkEntry
|
||||
*
|
||||
* Retrieves the maximum allowed length of the text in
|
||||
* @entry. See gtk_entry_set_max_length().
|
||||
*
|
||||
* Return value: the maximum allowed number of characters
|
||||
* in #GtkEntry, or 0 if there is no maximum.
|
||||
**/
|
||||
gint
|
||||
gtk_entry_get_max_length (GtkEntry *entry)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_ENTRY (entry), 0);
|
||||
|
||||
return entry->text_max_length;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_entry_set_activates_default:
|
||||
* @entry: a #GtkEntry
|
||||
|
||||
Reference in New Issue
Block a user