empathy r1047 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1047 - trunk/libempathy-gtk
- Date: Fri, 25 Apr 2008 11:52:14 +0100 (BST)
Author: xclaesse
Date: Fri Apr 25 10:52:14 2008
New Revision: 1047
URL: http://svn.gnome.org/viewvc/empathy?rev=1047&view=rev
Log:
Do not give a struct as a parameter by value. (Alban Crequy).
Modified:
trunk/libempathy-gtk/empathy-chat.c
trunk/libempathy-gtk/empathy-chat.h
trunk/libempathy-gtk/empathy-spell-dialog.c
trunk/libempathy-gtk/empathy-spell-dialog.h
Modified: trunk/libempathy-gtk/empathy-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.c (original)
+++ trunk/libempathy-gtk/empathy-chat.c Fri Apr 25 10:52:14 2008
@@ -978,8 +978,8 @@
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 @@
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 @@
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);
}
Modified: trunk/libempathy-gtk/empathy-chat.h
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.h (original)
+++ trunk/libempathy-gtk/empathy-chat.h Fri Apr 25 10:52:14 2008
@@ -79,8 +79,8 @@
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
Modified: trunk/libempathy-gtk/empathy-spell-dialog.c
==============================================================================
--- trunk/libempathy-gtk/empathy-spell-dialog.c (original)
+++ trunk/libempathy-gtk/empathy-spell-dialog.c Fri Apr 25 10:52:14 2008
@@ -208,8 +208,8 @@
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 @@
void
empathy_spell_dialog_show (EmpathyChat *chat,
- GtkTextIter start,
- GtkTextIter end,
+ GtkTextIter *start,
+ GtkTextIter *end,
const gchar *word)
{
EmpathySpellDialog *dialog;
@@ -238,8 +238,8 @@
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");
Modified: trunk/libempathy-gtk/empathy-spell-dialog.h
==============================================================================
--- trunk/libempathy-gtk/empathy-spell-dialog.h (original)
+++ trunk/libempathy-gtk/empathy-spell-dialog.h Fri Apr 25 10:52:14 2008
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]