From ec790f576119e171ba9b77dd6f7bfcf7a42ebeb1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 17 Jul 2009 15:02:03 -0400 Subject: Bug 579702 – Contact changes not shown until restart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addressbook/gui/widgets/e-addressbook-model.c | 6 +++--- addressbook/gui/widgets/e-addressbook-model.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index b68763c805..7ae371d411 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -250,7 +250,7 @@ modify_contact(EBookView *book_view, array->pdata[ii] = contact; g_signal_emit ( - model, signals[CONTACT_CHANGED], 0, contact); + model, signals[CONTACT_CHANGED], 0, ii); break; } @@ -607,8 +607,8 @@ addressbook_model_class_init (EAddressbookModelClass *class) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EAddressbookModelClass, contact_changed), NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, - G_TYPE_NONE, 1, E_TYPE_CONTACT); + g_cclosure_marshal_VOID__INT, + G_TYPE_NONE, 1, G_TYPE_INT); signals[MODEL_CHANGED] = g_signal_new ("model_changed", diff --git a/addressbook/gui/widgets/e-addressbook-model.h b/addressbook/gui/widgets/e-addressbook-model.h index d17a8f38a7..b42de48dbc 100644 --- a/addressbook/gui/widgets/e-addressbook-model.h +++ b/addressbook/gui/widgets/e-addressbook-model.h @@ -74,7 +74,7 @@ struct _EAddressbookModelClass { void (*contacts_removed) (EAddressbookModel *model, gpointer id_list); void (*contact_changed) (EAddressbookModel *model, - EContact *contact); + gint index); void (*model_changed) (EAddressbookModel *model); void (*stop_state_changed) (EAddressbookModel *model); void (*backend_died) (EAddressbookModel *model); -- cgit