aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-completion.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-02 10:21:55 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-02 10:21:55 +0800
commitba0d7abd390268b2e370f179018885a6067a67f1 (patch)
tree6f62c38a8b9d22e950393b3510860486743924ef /addressbook/gui/component/select-names/e-select-names-completion.c
parent50ef074887b43f43dad3edb120d9abf30092c681 (diff)
downloadgsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar.gz
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar.bz2
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar.lz
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar.xz
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.tar.zst
gsoc2013-evolution-ba0d7abd390268b2e370f179018885a6067a67f1.zip
Oops, we do need to be able to write to "text" after all (for things like
2001-03-01 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-bonobo.c (entry_set_property_fn): Oops, we do need to be able to write to "text" after all (for things like Reply-to: to work properly). Fixed. (impl_SelectNames_get_entry_for_section): Made "text" a writeable property again. * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_insert_length): Increment pos so that we don't reverse strings when length > 1 (a particularly amusing bug). * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_destroy): Check for NULL before calling gtk_object_unref (GTK_OBJECT (---)), to get rid of annoying error messages. svn path=/trunk/; revision=8512
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-completion.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-completion.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c
index e388851ded..5f87144510 100644
--- a/addressbook/gui/component/select-names/e-select-names-completion.c
+++ b/addressbook/gui/component/select-names/e-select-names-completion.c
@@ -529,10 +529,13 @@ e_select_names_completion_destroy (GtkObject *object)
{
ESelectNamesCompletion *comp = E_SELECT_NAMES_COMPLETION (object);
- gtk_object_unref (GTK_OBJECT (comp->priv->model));
- gtk_object_unref (GTK_OBJECT (comp->priv->book));
+ if (comp->priv->model)
+ gtk_object_unref (GTK_OBJECT (comp->priv->model));
- if (GTK_OBJECT (comp->priv->book_view)) {
+ if (comp->priv->book)
+ gtk_object_unref (GTK_OBJECT (comp->priv->book));
+
+ if (comp->priv->book_view) {
gtk_signal_disconnect (GTK_OBJECT (comp->priv->book_view), comp->priv->card_added_id);
gtk_signal_disconnect (GTK_OBJECT (comp->priv->book_view), comp->priv->seq_complete_id);
gtk_object_unref (GTK_OBJECT (comp->priv->book_view));