Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | sexy_spell_entry_new () |
GSList * | sexy_spell_entry_get_languages () |
gchar * | sexy_spell_entry_get_language_name () |
gboolean | sexy_spell_entry_language_is_active () |
gboolean | sexy_spell_entry_activate_language () |
void | sexy_spell_entry_deactivate_language () |
gboolean | sexy_spell_entry_set_active_languages () |
GSList * | sexy_spell_entry_get_active_languages () |
gboolean | sexy_spell_entry_is_checked () |
void | sexy_spell_entry_set_checked () |
void | sexy_spell_entry_activate_default_languages () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkEntry ╰── SexySpellEntry
SexySpellEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
SexySpellEntry is a GtkEntry with inline spell checking. This makes use of Enchant and allows the user to see what they've typed wrong as they type it. A right-click menu is provided for misspelled words offering suggestions.
GtkWidget *
sexy_spell_entry_new (void
);
Creates a new SexySpellEntry widget.
GSList *
sexy_spell_entry_get_languages (const SexySpellEntry *entry
);
Retrieve a list of language codes for which dictionaries are available.
gchar * sexy_spell_entry_get_language_name (const SexySpellEntry *entry
,const gchar *lang
);
Get a friendly name for a given locale.
gboolean sexy_spell_entry_language_is_active (const SexySpellEntry *entry
,const gchar *lang
);
Determine if a given language is currently active.
gboolean sexy_spell_entry_activate_language (SexySpellEntry *entry
,const gchar *lang
,GError **error
);
Activate spell checking for the language specifed.
void sexy_spell_entry_deactivate_language (SexySpellEntry *entry
,const gchar *lang
);
Deactivate spell checking for the language specifed.
gboolean sexy_spell_entry_set_active_languages (SexySpellEntry *entry
,GSList *langs
,GError **error
);
Activate spell checking for only the languages specified.
GSList *
sexy_spell_entry_get_active_languages (SexySpellEntry *entry
);
Retrieve a list of the currently active languages.
gboolean
sexy_spell_entry_is_checked (SexySpellEntry *entry
);
Queries a SexySpellEntry and returns whether the entry has spell-checking enabled.
void sexy_spell_entry_set_checked (SexySpellEntry *entry
,gboolean checked
);
Sets whether the entry has spell-checking enabled.
void
sexy_spell_entry_activate_default_languages
(SexySpellEntry *entry
);
Activate spell checking for languages specified in the $LANG or $LANGUAGE environment variables. These languages are activated by default, so this function need only be called if they were previously deactivated.
struct SexySpellEntry;
The SexySpellEntry struct contains private data only, and should be manipulated using the functions below.
“word-check”
signalgboolean user_function (SexySpellEntry *entry, gchar *word, gpointer user_data)
The ::word-check signal is emitted whenever the entry has to check a word. This allows the application to mark words as correct even if none of the active dictionaries contain it, such as nicknames in a chat client.
entry |
The entry on which the signal is emitted. |
|
word |
The word to check. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last