]> git.0d.be Git - empathy.git/commitdiff
Do not give a struct as a parameter by value. (Alban Crequy).
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 25 Apr 2008 10:52:14 +0000 (10:52 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 25 Apr 2008 10:52:14 +0000 (10:52 +0000)
svn path=/trunk/; revision=1047

libempathy-gtk/empathy-chat.c
libempathy-gtk/empathy-chat.h
libempathy-gtk/empathy-spell-dialog.c
libempathy-gtk/empathy-spell-dialog.h

index 22b6f46bb8897dae624dfe521a9182f512251358..a432a2a76ffc2eb120b999c8b93b9c1814f7eaeb 100644 (file)
@@ -978,8 +978,8 @@ chat_text_check_word_spelling_cb (GtkMenuItem     *menuitem,
                                  EmpathyChatSpell *chat_spell)
 {
        empathy_spell_dialog_show (chat_spell->chat,
                                  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);
 }
 
                                  chat_spell->word);
 }
 
@@ -1794,8 +1794,8 @@ empathy_chat_paste (EmpathyChat *chat)
 
 void
 empathy_chat_correct_word (EmpathyChat  *chat,
 
 void
 empathy_chat_correct_word (EmpathyChat  *chat,
-                         GtkTextIter  start,
-                         GtkTextIter  end,
+                         GtkTextIter *start,
+                         GtkTextIter *end,
                          const gchar *new_word)
 {
        GtkTextBuffer *buffer;
                          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));
 
 
        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);
 }
                                new_word,
                                -1);
 }
index ea98211a10642edfc12733bcbe2296d894e4b4db..5af9d609b8875aaf815c0ac3bb18eb1180326ca1 100644 (file)
@@ -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,
 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
                                                      const gchar   *new_word);
 
 G_END_DECLS
index d7701d19cdf3c139685736bc7c64f378663009db..19531cf760040de80ef0f78b196a47a369f5cfb4 100644 (file)
@@ -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,
                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);
                                          new_word);
 
                g_free (new_word);
@@ -220,8 +220,8 @@ spell_dialog_response_cb (GtkWidget         *widget,
 
 void
 empathy_spell_dialog_show (EmpathyChat  *chat,
 
 void
 empathy_spell_dialog_show (EmpathyChat  *chat,
-                         GtkTextIter  start,
-                         GtkTextIter  end,
+                         GtkTextIter *start,
+                         GtkTextIter *end,
                          const gchar *word)
 {
        EmpathySpellDialog *dialog;
                          const gchar *word)
 {
        EmpathySpellDialog *dialog;
@@ -238,8 +238,8 @@ empathy_spell_dialog_show (EmpathyChat  *chat,
 
        dialog->word = g_strdup (word);
 
 
        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");
 
        filename = empathy_file_lookup ("empathy-spell-dialog.glade",
                                        "libempathy-gtk");
index e6d2e4c7aecf5e587c4d4af4f9926f88fb152742..ce0218812ebb7e613434f6aa0b9cb6e910e8fdb5 100644 (file)
@@ -30,8 +30,8 @@
 G_BEGIN_DECLS
 
 void empathy_spell_dialog_show (EmpathyChat  *chat,
 G_BEGIN_DECLS
 
 void empathy_spell_dialog_show (EmpathyChat  *chat,
-                              GtkTextIter  start,
-                              GtkTextIter  end,
+                              GtkTextIter *start,
+                              GtkTextIter *end,
                               const gchar *word);
 
 G_END_DECLS
                               const gchar *word);
 
 G_END_DECLS