empathy r2340 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2340 - trunk/libempathy-gtk
- Date: Fri, 30 Jan 2009 17:34:52 +0000 (UTC)
Author: xclaesse
Date: Fri Jan 30 17:34:52 2009
New Revision: 2340
URL: http://svn.gnome.org/viewvc/empathy?rev=2340&view=rev
Log:
Use dispose_run in EmpathyContactSelector.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy-gtk/empathy-contact-selector.c
Modified: trunk/libempathy-gtk/empathy-contact-selector.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-selector.c (original)
+++ trunk/libempathy-gtk/empathy-contact-selector.c Fri Jan 30 17:34:52 2009
@@ -44,6 +44,7 @@
typedef struct
{
EmpathyContactListStore *store;
+ gboolean dispose_run;
} EmpathyContactSelectorPriv;
static void contact_selector_changed_cb (
@@ -279,6 +280,8 @@
EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorPriv);
empathy_contact_selector->priv = priv;
+
+ priv->dispose_run = FALSE;
}
static void
@@ -327,6 +330,11 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]