From 2a27b9a4f94d08614be03d915dbc261f30da9f42 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 30 Sep 2009 12:24:18 +0200 Subject: Disable account creation on moblin. --- src/empathy-accounts-dialog.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index b2107554a..c3d931f44 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", -- cgit v1.2.3