[empathy] account-widget: check that the apply button actually exist before modifying it
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] account-widget: check that the apply button actually exist before modifying it
- Date: Tue, 19 Jan 2010 15:47:03 +0000 (UTC)
commit 48a4f5ec33f06f0e26017fcf7fc4c235a8e6d7df
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jan 19 13:42:12 2010 +0000
account-widget: check that the apply button actually exist before modifying it
It's not created in the 'simple' version of the widget. (#607455)
libempathy-gtk/empathy-account-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 52efbce..112673d 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1311,6 +1311,10 @@ presence_changed_cb (TpAccountManager *manager,
if (priv->destroyed)
return;
+ if (priv->apply_button == NULL)
+ /* This button doesn't exist in 'simple' mode */
+ return;
+
if (state > TP_CONNECTION_PRESENCE_TYPE_OFFLINE)
{
/* We are online, display a Login button */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]