diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-04-26 14:10:40 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-04-26 14:10:40 +0800 |
commit | e2ea35aab9fe8821eb4c42224d635e96745bfbf7 (patch) | |
tree | efaa7deb2c0aa9c4a2186b242b0224efb6385732 /addressbook/gui/component/select-names/e-select-names.c | |
parent | df00976fe425356187dbbd72b8080ae4a1d9dd01 (diff) | |
download | gsoc2013-evolution-e2ea35aab9fe8821eb4c42224d635e96745bfbf7.tar.gz gsoc2013-evolution-e2ea35aab9fe8821eb4c42224d635e96745bfbf7.tar.zst gsoc2013-evolution-e2ea35aab9fe8821eb4c42224d635e96745bfbf7.zip |
Unref the text_model here instead of the model, since the model never gets
2002-04-26 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names.c
(e_select_names_child_free): Unref the text_model here instead of
the model, since the model never gets set. Removed the model
field since it's no longer used.
svn path=/trunk/; revision=16592
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 782905de23..7e9b2a6409 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -65,7 +65,6 @@ enum { typedef struct { char *title; - ETableModel *model; ESelectNamesModel *source; ESelectNamesTextModel *text_model; ESelectNames *names; @@ -836,7 +835,7 @@ static void e_select_names_child_free(char *key, ESelectNamesChild *child, ESele { gtk_signal_disconnect_by_func (GTK_OBJECT (child->source), GTK_SIGNAL_FUNC (sync_table_and_models), e_select_names); g_free(child->title); - gtk_object_unref(GTK_OBJECT(child->model)); + gtk_object_unref(GTK_OBJECT(child->text_model)); gtk_object_unref(GTK_OBJECT(child->source)); g_free(key); } @@ -1104,11 +1103,11 @@ e_select_names_get_section(ESelectNames *e_select_names, char *id) child = g_hash_table_lookup(e_select_names->children, id); if (!child) return NULL; - rows = e_table_model_row_count(child->model); + rows = e_select_names_model_count (child->source); list = e_list_new(card_copy, card_free, NULL); for (i = 0; i < rows; i++) { - ECard *card = e_cardlist_model_get(E_CARDLIST_MODEL(child->model), i); + ECard *card = e_select_names_model_get_card (child->source, i); e_list_append(list, card); gtk_object_unref(GTK_OBJECT(card)); } |