[telepathy-account-widgets] tpaw-user-info: explain that the details will be shared with other users



commit 2b8e8e788f85bd62b4f67cc8cd45dfc8a759112a
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Thu Aug 22 13:44:44 2013 +0100

    tpaw-user-info: explain that the details will be shared with other users

 tp-account-widgets/tpaw-user-info.c |   16 ++++++++++++++++
 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 7fac7d3..2320ffa 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 (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]