From 88df864cb719348f3f07b9abefd6a22f6880bdb8 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 2 Feb 2004 22:20:41 +0000 Subject: hook up contact_changed/contact_removed signals. (contact_changed): new 2004-02-02 Chris Toshok * gui/widgets/e-addressbook-view.c (eab_view_new): hook up contact_changed/contact_removed signals. (contact_changed): new function. if the changed contact is the one we're displaying, re-render it. (contact_removed): new function. if the removed contact is the one we're displaying, clear the display. (render_contact): set displayed_contact to the row. (eab_view_init): init displayed_contact to -1. (selection_changed): set displayed_contact to -1 when we clear the display. * gui/widgets/e-addressbook-view.h (struct _EABView): add "displayed_contact" so we can update the contact preview when it changes. svn path=/trunk/; revision=24574 --- addressbook/gui/widgets/e-addressbook-view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/gui/widgets/e-addressbook-view.h') diff --git a/addressbook/gui/widgets/e-addressbook-view.h b/addressbook/gui/widgets/e-addressbook-view.h index c03c1e3d00..c90356beee 100644 --- a/addressbook/gui/widgets/e-addressbook-view.h +++ b/addressbook/gui/widgets/e-addressbook-view.h @@ -76,6 +76,8 @@ struct _EABView char *query; guint editable : 1; + gint displayed_contact; + GObject *object; GtkWidget *widget; -- cgit v1.2.3