aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-chat.c12
-rw-r--r--libempathy-gtk/empathy-chat.h4
-rw-r--r--libempathy-gtk/empathy-spell-dialog.c12
-rw-r--r--libempathy-gtk/empathy-spell-dialog.h4
4 files changed, 16 insertions, 16 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 22b6f46bb..a432a2a76 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -978,8 +978,8 @@ chat_text_check_word_spelling_cb (GtkMenuItem *menuitem,
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);
}
@@ -1794,8 +1794,8 @@ empathy_chat_paste (EmpathyChat *chat)
void
empathy_chat_correct_word (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *new_word)
{
GtkTextBuffer *buffer;
@@ -1805,8 +1805,8 @@ empathy_chat_correct_word (EmpathyChat *chat,
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);
}
diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h
index ea98211a1..5af9d609b 100644
--- a/libempathy-gtk/empathy-chat.h
+++ b/libempathy-gtk/empathy-chat.h
@@ -79,8 +79,8 @@ void empathy_chat_cut (EmpathyChat *chat);
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
diff --git a/libempathy-gtk/empathy-spell-dialog.c b/libempathy-gtk/empathy-spell-dialog.c
index d7701d19c..19531cf76 100644
--- a/libempathy-gtk/empathy-spell-dialog.c
+++ b/libempathy-gtk/empathy-spell-dialog.c
@@ -208,8 +208,8 @@ spell_dialog_response_cb (GtkWidget *widget,
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);
@@ -220,8 +220,8 @@ spell_dialog_response_cb (GtkWidget *widget,
void
empathy_spell_dialog_show (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *word)
{
EmpathySpellDialog *dialog;
@@ -238,8 +238,8 @@ empathy_spell_dialog_show (EmpathyChat *chat,
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");
diff --git a/libempathy-gtk/empathy-spell-dialog.h b/libempathy-gtk/empathy-spell-dialog.h
index e6d2e4c7a..ce0218812 100644
--- a/libempathy-gtk/empathy-spell-dialog.h
+++ b/libempathy-gtk/empathy-spell-dialog.h
@@ -30,8 +30,8 @@
G_BEGIN_DECLS
void empathy_spell_dialog_show (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *word);
G_END_DECLS