[epiphany/tls-errors] ephy-certificate-dialog: display window title



commit 712427b898dba553e14c4df6dc4f4633001d8ae7
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Jul 9 21:43:31 2014 -0500

    ephy-certificate-dialog: display window title
    
    The blank header bar feels quite odd.

 lib/widgets/ephy-certificate-dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-certificate-dialog.c b/lib/widgets/ephy-certificate-dialog.c
index ff39f1d..fcc36b0 100644
--- a/lib/widgets/ephy-certificate-dialog.c
+++ b/lib/widgets/ephy-certificate-dialog.c
@@ -45,6 +45,7 @@ struct _EphyCertificateDialogPrivate
   GtkWidget *icon;
   GtkWidget *title;
   GtkWidget *text;
+  GtkWidget *headerbar;
 };
 
 G_DEFINE_TYPE (EphyCertificateDialog, ephy_certificate_dialog, GTK_TYPE_DIALOG)
@@ -53,10 +54,11 @@ static void
 ephy_certificate_dialog_set_address (EphyCertificateDialog *dialog,
                                      const char *address)
 {
+  EphyCertificateDialogPrivate *priv = dialog->priv;
   SoupURI *uri;
 
   uri = soup_uri_new (address);
-  gtk_window_set_title (GTK_WINDOW (dialog), uri->host);
+  gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), uri->host);
   soup_uri_free (uri);
 }
 
@@ -300,6 +302,8 @@ ephy_certificate_dialog_init (EphyCertificateDialog *dialog)
   gtk_box_set_spacing (GTK_BOX (content_area), 14);
   gtk_box_pack_start (GTK_BOX (content_area), grid, FALSE, FALSE, 0);
   gtk_widget_show (grid);
+
+  priv->headerbar = gtk_dialog_get_header_bar (GTK_DIALOG (dialog));
 }
 
 GtkWidget *


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