aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-24 00:30:36 +0800
committerMilan Crha <mcrha@redhat.com>2011-06-24 00:30:36 +0800
commit4778e69589b8d5fca5b59cdb664b8e6e39a4697f (patch)
tree638161bcfa62d0a39a3f33b4979acb7a38159b5f /addressbook/gui
parent4aff7a476d813922b5ded6a72a10b38f3ddfe006 (diff)
downloadgsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.gz
gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.tar.zst
gsoc2013-evolution-4778e69589b8d5fca5b59cdb664b8e6e39a4697f.zip
Postpone ENameSelector loading as much as possible
Also fixes few memory leaks around ENameSelector and cancels loading of its address books when not needed any more.
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index a4f30ca573..a6a9ceca15 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -1133,7 +1133,6 @@ setup_custom_widgets (EContactListEditor *editor)
GtkWidget *combo_box;
ESourceList *source_list;
ENameSelectorEntry *name_selector_entry;
- ENameSelector *name_selector;
GtkWidget *old, *parent;
EContactListEditorPrivate *priv;
GError *error = NULL;
@@ -1162,14 +1161,8 @@ setup_custom_widgets (EContactListEditor *editor)
old = CONTACT_LIST_EDITOR_WIDGET (editor, "email-entry");
g_return_if_fail (old != NULL);
- name_selector = e_name_selector_new ();
-
- e_name_selector_model_add_section (
- e_name_selector_peek_model (name_selector),
- "Members", _("_Members"), NULL);
-
name_selector_entry = e_name_selector_peek_section_entry (
- name_selector, "Members");
+ priv->name_selector, "Members");
gtk_widget_set_name (
GTK_WIDGET (name_selector_entry),
@@ -1316,6 +1309,7 @@ contact_list_editor_dispose (GObject *object)
EContactListEditorPrivate *priv = editor->priv;
if (priv->name_selector) {
+ e_name_selector_cancel_loading (priv->name_selector);
g_object_unref (priv->name_selector);
priv->name_selector = NULL;
}
d-ports-gnome/commit/net/ntop?h=gnome-3.24&id=11edc5451416c23af13418fc8391548f68dd629b'>Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Explicitly disable SNMP which breaks the build when net-mgmt/net-snmp is inst...wxs2008-03-031-2/+3 * Update my address.wxs2008-02-041-1/+1 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-301-1/+2 * [MAINTAINER]: Fix net/ntopedwin2007-09-121-1/+1 * - Update to 3.3pav2007-07-229-144/+115 * - Fix build with qt4.miwi2007-05-262-5/+14 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * Use libtool15 port instead of included version to avoid objformat a.out botchkris2007-02-101-0/+1 * This port depends on urwfonts, not urwfonfs.cperciva2006-09-211-1/+1 * - Fix run-time dependenciesjohans2006-09-211-1/+4 * - updated maintainer's email addressclsung2006-08-311-1/+1 * - Add libxml2 dependency [1]mnag2006-03-236-54/+65 * Conversion to a single libtool environment.ade2006-02-231-1/+1 * - Install rc.d script with USE_RC_SUBR (PORTREVISION bumped).lawrance2005-12-126-90/+67