From 9a1593d15ca3c4e0e171c4ac413a2ef33d251943 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Mon, 17 Nov 2003 21:30:13 +0000 Subject: Store a ref to the source selector. (impl_requestCreateItem): Implement. 2003-11-17 Hans Petter Jansson * gui/component/addressbook-component.c (impl_createControls): Store a ref to the source selector. (impl_requestCreateItem): Implement. (impl_dispose): Unref the source selector. (addressbook_component_init): Set up default sources. * gui/widgets/e-addressbook-model.c (eab_model_set_property): If the 'book' property is set, and editability changes, emit a signal to that effect. svn path=/trunk/; revision=23404 --- addressbook/gui/widgets/e-addressbook-model.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index e8a1e76a38..5a8088dc0a 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -550,8 +550,13 @@ eab_model_set_property (GObject *object, guint prop_id, const GValue *value, GPa } model->book = E_BOOK(g_value_get_object (value)); if (model->book) { - if (!model->editable_set) + if (!model->editable_set) { model->editable = e_book_is_writable (model->book); + + g_signal_emit (model, + eab_model_signals [WRITABLE_STATUS], 0, + model->editable); + } model->first_get_view = TRUE; g_object_ref (model->book); get_view (model); -- cgit