Commit cf9db498 authored by Xavier Claessens's avatar Xavier Claessens

Do not give a struct as a parameter by value. (Alban Crequy).

svn path=/trunk/; revision=1047
parent 50efb94e
...@@ -978,8 +978,8 @@ chat_text_check_word_spelling_cb (GtkMenuItem *menuitem, ...@@ -978,8 +978,8 @@ chat_text_check_word_spelling_cb (GtkMenuItem *menuitem,
EmpathyChatSpell *chat_spell) EmpathyChatSpell *chat_spell)
{ {
empathy_spell_dialog_show (chat_spell->chat, empathy_spell_dialog_show (chat_spell->chat,
chat_spell->start, &chat_spell->start,
chat_spell->end, &chat_spell->end,
chat_spell->word); chat_spell->word);
} }
...@@ -1794,8 +1794,8 @@ empathy_chat_paste (EmpathyChat *chat) ...@@ -1794,8 +1794,8 @@ empathy_chat_paste (EmpathyChat *chat)
void void
empathy_chat_correct_word (EmpathyChat *chat, empathy_chat_correct_word (EmpathyChat *chat,
GtkTextIter start, GtkTextIter *start,
GtkTextIter end, GtkTextIter *end,
const gchar *new_word) const gchar *new_word)
{ {
GtkTextBuffer *buffer; GtkTextBuffer *buffer;
...@@ -1805,8 +1805,8 @@ empathy_chat_correct_word (EmpathyChat *chat, ...@@ -1805,8 +1805,8 @@ empathy_chat_correct_word (EmpathyChat *chat,
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view)); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
gtk_text_buffer_delete (buffer, &start, &end); gtk_text_buffer_delete (buffer, start, end);
gtk_text_buffer_insert (buffer, &start, gtk_text_buffer_insert (buffer, start,
new_word, new_word,
-1); -1);
} }
......
...@@ -79,8 +79,8 @@ void empathy_chat_cut (EmpathyChat *chat); ...@@ -79,8 +79,8 @@ void empathy_chat_cut (EmpathyChat *chat);
void empathy_chat_copy (EmpathyChat *chat); void empathy_chat_copy (EmpathyChat *chat);
void empathy_chat_paste (EmpathyChat *chat); void empathy_chat_paste (EmpathyChat *chat);
void empathy_chat_correct_word (EmpathyChat *chat, void empathy_chat_correct_word (EmpathyChat *chat,
GtkTextIter start, GtkTextIter *start,
GtkTextIter end, GtkTextIter *end,
const gchar *new_word); const gchar *new_word);
G_END_DECLS G_END_DECLS
......
...@@ -208,8 +208,8 @@ spell_dialog_response_cb (GtkWidget *widget, ...@@ -208,8 +208,8 @@ spell_dialog_response_cb (GtkWidget *widget,
gtk_tree_model_get (model, &iter, COL_SPELL_WORD, &new_word, -1); gtk_tree_model_get (model, &iter, COL_SPELL_WORD, &new_word, -1);
empathy_chat_correct_word (dialog->chat, empathy_chat_correct_word (dialog->chat,
dialog->start, &dialog->start,
dialog->end, &dialog->end,
new_word); new_word);
g_free (new_word); g_free (new_word);
...@@ -220,8 +220,8 @@ spell_dialog_response_cb (GtkWidget *widget, ...@@ -220,8 +220,8 @@ spell_dialog_response_cb (GtkWidget *widget,
void void
empathy_spell_dialog_show (EmpathyChat *chat, empathy_spell_dialog_show (EmpathyChat *chat,
GtkTextIter start, GtkTextIter *start,
GtkTextIter end, GtkTextIter *end,
const gchar *word) const gchar *word)
{ {
EmpathySpellDialog *dialog; EmpathySpellDialog *dialog;
...@@ -238,8 +238,8 @@ empathy_spell_dialog_show (EmpathyChat *chat, ...@@ -238,8 +238,8 @@ empathy_spell_dialog_show (EmpathyChat *chat,
dialog->word = g_strdup (word); dialog->word = g_strdup (word);
dialog->start = start; dialog->start = *start;
dialog->end = end; dialog->end = *end;
filename = empathy_file_lookup ("empathy-spell-dialog.glade", filename = empathy_file_lookup ("empathy-spell-dialog.glade",
"libempathy-gtk"); "libempathy-gtk");
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
G_BEGIN_DECLS G_BEGIN_DECLS
void empathy_spell_dialog_show (EmpathyChat *chat, void empathy_spell_dialog_show (EmpathyChat *chat,
GtkTextIter start, GtkTextIter *start,
GtkTextIter end, GtkTextIter *end,
const gchar *word); const gchar *word);
G_END_DECLS G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment