aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-01-31 01:34:52 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:34:52 +0800
commit8aad026deaf3577cc63a75d60ca7951601e300a6 (patch)
tree32cddc74c1092e297356725d7d16c94ce9ebb5e2 /libempathy-gtk
parente16d37dd3d789edb49d69ca87dc807a703be454b (diff)
downloadgsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar.gz
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar.bz2
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar.lz
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar.xz
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.tar.zst
gsoc2013-empathy-8aad026deaf3577cc63a75d60ca7951601e300a6.zip
Use dispose_run in EmpathyContactSelector.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2340
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-selector.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c
index 7b55b5142..f22b5b35d 100644
--- a/libempathy-gtk/empathy-contact-selector.c
+++ b/libempathy-gtk/empathy-contact-selector.c
@@ -44,6 +44,7 @@ enum
typedef struct
{
EmpathyContactListStore *store;
+ gboolean dispose_run;
} EmpathyContactSelectorPriv;
static void contact_selector_changed_cb (
@@ -279,6 +280,8 @@ empathy_contact_selector_init (EmpathyContactSelector *empathy_contact_selector)
EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv);
empathy_contact_selector->priv = priv;
+
+ priv->dispose_run = FALSE;
}
static void
@@ -327,6 +330,11 @@ contact_selector_dispose (GObject *object)
EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (object);
EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
+ if (priv->dispose_run)
+ return;
+
+ priv->dispose_run = TRUE;
+
if (priv->store)
{
g_object_unref (priv->store);