diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-02-14 05:44:01 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-02-14 05:44:01 +0800 |
commit | e5d53ef4216a5505e0f916dc359d7f9cdff558e2 (patch) | |
tree | a5263abe0e3c5e6af2033f9cb5ddbc1ca2bef125 /addressbook | |
parent | 2cacdc5d41cbf020f57ff782efcdd6e4bf999636 (diff) | |
download | gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.gz gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.bz2 gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.lz gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.xz gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.zst gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.zip |
Keep a ref of the model in this case as well.
2002-02-13 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names.c (set_book): Keep a
ref of the model in this case as well.
svn path=/trunk/; revision=15716
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 68ba8f5300..4bfaccc9ee 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 2002-02-13 Christopher James Lahey <clahey@ximian.com> + * gui/component/select-names/e-select-names.c (set_book): Keep a + ref of the model in this case as well. + +2002-02-13 Christopher James Lahey <clahey@ximian.com> + * gui/component/select-names/e-select-names.c (set_book): Make sure to only set the query once when creating a new book and not at all on addressbook model creation. This prevents an accidental diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 9a0d9f6805..b58b6c1748 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -137,6 +137,7 @@ set_book(EBook *book, EBookStatus status, ESelectNames *esn) update_query (NULL, esn); gtk_object_unref(GTK_OBJECT(book)); gtk_object_unref(GTK_OBJECT(esn)); + gtk_object_unref(GTK_OBJECT(esn->model)); } static void @@ -166,6 +167,7 @@ addressbook_model_set_uri(ESelectNames *e_select_names, EAddressbookModel *model book = e_book_new(); if (e_select_names) { gtk_object_ref(GTK_OBJECT(e_select_names)); + gtk_object_ref(GTK_OBJECT(model)); addressbook_load_uri(book, uri, (EBookCallback) set_book, e_select_names); } else { gtk_object_ref(GTK_OBJECT(model)); |