aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-18 03:02:03 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-18 03:02:03 +0800
commitec790f576119e171ba9b77dd6f7bfcf7a42ebeb1 (patch)
treee584d3de2d6957fefc68112446fd0364b34487d8 /addressbook/gui
parentda665f8f99e778263d0a411def22830b2bcaa647 (diff)
downloadgsoc2013-evolution-ec790f576119e171ba9b77dd6f7bfcf7a42ebeb1.tar.gz
gsoc2013-evolution-ec790f576119e171ba9b77dd6f7bfcf7a42ebeb1.tar.zst
gsoc2013-evolution-ec790f576119e171ba9b77dd6f7bfcf7a42ebeb1.zip
Bug 579702 – Contact changes not shown until restart
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c6
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.h2
2 files changed, 4 insertions, 4 deletions
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);