diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-08-29 16:50:39 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-10-09 22:13:06 +0800 |
commit | 8df9026631e8cf6b65782d2dca718ea69c9ea87b (patch) | |
tree | 716aa9147a858230a2ee0791711512ab53988fe8 /src | |
parent | dfa8373a400011c04ceb8a2e0f7ab3cdf6717885 (diff) | |
download | gsoc2013-empathy-8df9026631e8cf6b65782d2dca718ea69c9ea87b.tar.gz gsoc2013-empathy-8df9026631e8cf6b65782d2dca718ea69c9ea87b.tar.zst gsoc2013-empathy-8df9026631e8cf6b65782d2dca718ea69c9ea87b.zip |
debug-window: add infobar telling user about privacy
https://bugzilla.gnome.org/show_bug.cgi?id=592995
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-debug-window.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c index 33b12627a..9e3e7f381 100644 --- a/src/empathy-debug-window.c +++ b/src/empathy-debug-window.c @@ -1844,6 +1844,7 @@ am_prepared_cb (GObject *am, GtkListStore *level_store; GtkTreeIter iter; GError *error = NULL; + GtkWidget *infobar, *content; if (!tp_proxy_prepare_finish (am, res, &error)) { @@ -2021,6 +2022,32 @@ am_prepared_cb (GObject *am, g_signal_connect (self->priv->level_filter, "changed", G_CALLBACK (debug_window_filter_changed_cb), object); + /* Info bar */ + infobar = gtk_info_bar_new (); + gtk_info_bar_set_message_type (GTK_INFO_BAR (infobar), GTK_MESSAGE_INFO); + + label = gtk_label_new ( + _("Even if they don't display passwords, logs can contain sensible " + "information such as your list of contacts or the messages you " + "recently sent or received.\nIf you don't want to see such " + "information available in a public bug report, you " + "can choose to limit the visibility of your bug to " + "Empathy developpers when reporting it by displaying " + "the advanced fields in the " + "<a href=\"https://bugzilla.gnome.org/enter_bug.cgi?product=empathy\">" + "bug report</a>.")); + gtk_label_set_use_markup (GTK_LABEL (label), TRUE); + gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); + gtk_style_context_add_class (gtk_widget_get_style_context (label), + GTK_STYLE_CLASS_DIM_LABEL); + + content = gtk_info_bar_get_content_area (GTK_INFO_BAR (infobar)); + gtk_box_pack_start (GTK_BOX (content), label, FALSE, FALSE, 0); + + gtk_widget_show (infobar); + gtk_widget_show (label); + gtk_box_pack_start (GTK_BOX (vbox), infobar, FALSE, FALSE, 0); + /* Debug treeview */ self->priv->view = gtk_tree_view_new (); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (self->priv->view), TRUE); |