From d6bae88c16bdbcf83100d7e1300c45cd47a1ebbb Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 6 Dec 2004 04:26:10 +0000 Subject: dont track containee widgets anymore, they are automagically destroyed by 2004-11-22 Not Zed * em-account-editor.c (emae_receive_options_extra_item): dont track containee widgets anymore, they are automagically destroyed by the container if required. svn path=/trunk/; revision=28071 --- mail/em-account-editor.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'mail/em-account-editor.c') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 6021f8f34e..febdb2aa79 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -94,7 +94,6 @@ /* econfig item for the extra config hings */ struct _receive_options_item { EMConfigItem item; - GSList *widgets; /* Only CAMEL_PROVIDER_CONF_ENTRYs GtkEntrys are stored here. The auto-detect camel provider code will probably be removed */ @@ -1809,20 +1808,12 @@ emae_receive_options_extra_item(EConfig *ec, EConfigItem *eitem, struct _GtkWidg GtkWidget *w, *l; CamelProviderConfEntry *entries; GtkWidget *depw; - GSList *depl = NULL, *widgets = NULL, *n; + GSList *depl = NULL, *n; EMAccountEditorService *service = &emae->priv->source; int row, i; GHashTable *extra; CamelURL *url; - /* Clean up any widgets we had setup before */ - if (item->widgets) { - g_slist_foreach(item->widgets, (GFunc)gtk_widget_destroy, NULL); - g_hash_table_destroy(item->extra_table); - item->widgets = NULL; - item->extra_table = NULL; - } - if (emae->priv->source.provider == NULL || emae->priv->source.provider->extra_conf == NULL) return NULL; @@ -1876,7 +1867,6 @@ section: g_hash_table_insert(extra, entries[i].name, w); if (depw) depl = g_slist_prepend(depl, w); - widgets = g_slist_prepend(widgets, w); row++; break; case CAMEL_PROVIDER_CONF_ENTRY: @@ -1889,8 +1879,6 @@ section: depl = g_slist_prepend(depl, w); depl = g_slist_prepend(depl, l); } - widgets = g_slist_prepend(widgets, w); - widgets = g_slist_prepend(widgets, l); row++; /* FIXME: this is another hack for exchange/groupwise connector */ g_hash_table_insert(item->extra_table, entries[i].name, w); @@ -1900,7 +1888,6 @@ section: gtk_table_attach((GtkTable *)parent, w, 0, 2, row, row+1, GTK_EXPAND|GTK_FILL, 0, 0, 0); if (depw) depl = g_slist_prepend(depl, w); - widgets = g_slist_prepend(widgets, w); row++; break; default: @@ -1925,7 +1912,6 @@ section: w = gtk_label_new(""); gtk_widget_hide(w); gtk_table_attach((GtkTable *)parent, w, 0, 2, row, row+1, 0, 0, 0, 0); - item->widgets = widgets; return w; } @@ -2177,7 +2163,6 @@ emae_free_auto(EConfig *ec, GSList *items, void *data) g_free(item->item.path); if (item->extra_table) g_hash_table_destroy(item->extra_table); - g_slist_free(item->widgets); g_free(item); g_slist_free_1(l); l = n; -- cgit v1.2.3