aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:34:52 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:34:52 +0800
commit4b75582bb9e608790409d477e51b29915fb25b38 (patch)
tree32cddc74c1092e297356725d7d16c94ce9ebb5e2
parentff8b6f2c8ecf4f85171af37bc63d393d93a10b59 (diff)
downloadgsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar.gz
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar.bz2
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar.lz
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar.xz
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.tar.zst
gsoc2013-empathy-4b75582bb9e608790409d477e51b29915fb25b38.zip
Use dispose_run in EmpathyContactSelector.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2340 4ee84921-47dd-4033-b63a-18d7a039a3e4
-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);