summaryrefslogtreecommitdiff
path: root/tp-account-widgets
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-08-22 13:44:44 +0100
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-22 13:44:44 +0100
commit2b8e8e788f85bd62b4f67cc8cd45dfc8a759112a (patch)
treef3b436b2fde1701bb61d861f359145736bb8b002 /tp-account-widgets
parentb960ce1eb5d3ecaffd1f2fd11f85e793cccc41f0 (diff)
downloadtelepathy-account-widgets-2b8e8e788f85bd62b4f67cc8cd45dfc8a759112a.tar.gz
tpaw-user-info: explain that the details will be shared with other users
Diffstat (limited to 'tp-account-widgets')
-rw-r--r--tp-account-widgets/tpaw-user-info.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tp-account-widgets/tpaw-user-info.c b/tp-account-widgets/tpaw-user-info.c
index 7fac7d3d..2320ffa5 100644
--- a/tp-account-widgets/tpaw-user-info.c
+++ b/tp-account-widgets/tpaw-user-info.c
@@ -489,6 +489,9 @@ tpaw_user_info_constructed (GObject *object)
{
TpawUserInfo *self = (TpawUserInfo *) object;
GtkGrid *grid = (GtkGrid *) self;
+ GtkWidget *infobar;
+ GtkWidget *infobar_content;
+ GtkWidget *infobar_label;
GtkWidget *title;
G_OBJECT_CLASS (tpaw_user_info_parent_class)->constructed (object);
@@ -496,6 +499,19 @@ tpaw_user_info_constructed (GObject *object)
gtk_grid_set_column_spacing (grid, 6);
gtk_grid_set_row_spacing (grid, 6);
+ infobar = gtk_info_bar_new ();
+ g_object_set (infobar, "margin-bottom", 6, NULL);
+ gtk_info_bar_set_message_type (GTK_INFO_BAR (infobar), GTK_MESSAGE_INFO);
+ infobar_content = gtk_info_bar_get_content_area (GTK_INFO_BAR (infobar));
+ infobar_label = gtk_label_new (
+ _("These details will be shared with other users on this "
+ "chat network."));
+ gtk_container_add (GTK_CONTAINER (infobar_content), infobar_label);
+ gtk_widget_show (infobar_label);
+ gtk_grid_attach_next_to ((GtkGrid *) self, infobar, NULL,
+ GTK_POS_TOP, 3, 1);
+ gtk_widget_show (infobar);
+
/* Setup id label */
title = gtk_label_new (_("Identifier"));
self->priv->identifier_label = gtk_label_new (