aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-09-30 18:24:18 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-09-30 20:26:29 +0800
commit2a27b9a4f94d08614be03d915dbc261f30da9f42 (patch)
treefc53b6f83fb06d9a98b9146faae2d88725f0a5aa /src/empathy-accounts-dialog.c
parentace52fb8ffdadc6795d1305de212e044a3625b19 (diff)
downloadgsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar.gz
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar.bz2
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar.lz
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar.xz
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.tar.zst
gsoc2013-empathy-2a27b9a4f94d08614be03d915dbc261f30da9f42.zip
Disable account creation on moblin.
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c8
1 files changed, 8 insertions, 0 deletions
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",