[empathy] Disable account creation on moblin.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Disable account creation on moblin.
- Date: Wed, 30 Sep 2009 12:27:19 +0000 (UTC)
commit 2a27b9a4f94d08614be03d915dbc261f30da9f42
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Sep 30 12:24:18 2009 +0200
Disable account creation on moblin.
src/empathy-accounts-dialog.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index b210755..c3d931f 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -394,6 +394,7 @@ accounts_dialog_protocol_changed_cb (GtkWidget *widget,
return;
}
+#ifndef HAVE_NBTK
if (tp_connection_manager_protocol_can_register (proto) && !is_gtalk)
{
gtk_widget_show (priv->radiobutton_register);
@@ -404,6 +405,11 @@ accounts_dialog_protocol_changed_cb (GtkWidget *widget,
gtk_widget_hide (priv->radiobutton_register);
gtk_widget_hide (priv->radiobutton_reuse);
}
+#else
+ gtk_widget_hide (priv->radiobutton_register);
+ gtk_widget_hide (priv->radiobutton_reuse);
+#endif
+
g_object_unref (cm);
}
@@ -1417,6 +1423,7 @@ accounts_dialog_button_create_clicked_cb (GtkWidget *button,
g_free (str);
+#ifndef HAVE_NBTK
if (tp_connection_manager_protocol_can_register (proto))
{
gboolean active;
@@ -1426,6 +1433,7 @@ accounts_dialog_button_create_clicked_cb (GtkWidget *button,
if (active)
empathy_account_settings_set_boolean (settings, "register", TRUE);
}
+#endif
if (is_gtalk)
empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]