EmpathyChatSpell *chat_spell)
{
empathy_spell_dialog_show (chat_spell->chat,
- chat_spell->start,
- chat_spell->end,
+ &chat_spell->start,
+ &chat_spell->end,
chat_spell->word);
}
void
empathy_chat_correct_word (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *new_word)
{
GtkTextBuffer *buffer;
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
- gtk_text_buffer_delete (buffer, &start, &end);
- gtk_text_buffer_insert (buffer, &start,
+ gtk_text_buffer_delete (buffer, start, end);
+ gtk_text_buffer_insert (buffer, start,
new_word,
-1);
}
void empathy_chat_copy (EmpathyChat *chat);
void empathy_chat_paste (EmpathyChat *chat);
void empathy_chat_correct_word (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *new_word);
G_END_DECLS
gtk_tree_model_get (model, &iter, COL_SPELL_WORD, &new_word, -1);
empathy_chat_correct_word (dialog->chat,
- dialog->start,
- dialog->end,
+ &dialog->start,
+ &dialog->end,
new_word);
g_free (new_word);
void
empathy_spell_dialog_show (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *word)
{
EmpathySpellDialog *dialog;
dialog->word = g_strdup (word);
- dialog->start = start;
- dialog->end = end;
+ dialog->start = *start;
+ dialog->end = *end;
filename = empathy_file_lookup ("empathy-spell-dialog.glade",
"libempathy-gtk");
G_BEGIN_DECLS
void empathy_spell_dialog_show (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *word);
G_END_DECLS