diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-11-18 05:30:13 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-11-18 05:30:13 +0800 |
commit | 9a1593d15ca3c4e0e171c4ac413a2ef33d251943 (patch) | |
tree | b9554dfd6636bf468f6e4113df9ebce739500218 /addressbook/gui/widgets | |
parent | c6b3809b47d4c5166d5244754f28b03ec5d5d60b (diff) | |
download | gsoc2013-evolution-9a1593d15ca3c4e0e171c4ac413a2ef33d251943.tar.gz gsoc2013-evolution-9a1593d15ca3c4e0e171c4ac413a2ef33d251943.tar.zst gsoc2013-evolution-9a1593d15ca3c4e0e171c4ac413a2ef33d251943.zip |
Store a ref to the source selector. (impl_requestCreateItem): Implement.
2003-11-17 Hans Petter Jansson <hpj@ximian.com>
* 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
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |