aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-04-26 14:10:40 +0800
committerChris Lahey <clahey@src.gnome.org>2002-04-26 14:10:40 +0800
commite2ea35aab9fe8821eb4c42224d635e96745bfbf7 (patch)
treeefaa7deb2c0aa9c4a2186b242b0224efb6385732 /addressbook
parentdf00976fe425356187dbbd72b8080ae4a1d9dd01 (diff)
downloadgsoc2013-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')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 6fb3f42b06..d2aa51b2db 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2002-04-24 Christopher James Lahey <clahey@ximian.com>
* gui/component/ldap-config.c: Updated this for the new
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));
}