[epiphany] security-popover: Use gtk_label_set_xalign



commit 38fd646791c0d92f9ebe5c98f90622e886036926
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Feb 10 00:14:52 2016 -0600

    security-popover: Use gtk_label_set_xalign
    
    New API introduced to solve exactly this problem....

 lib/widgets/ephy-security-popover.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/widgets/ephy-security-popover.c b/lib/widgets/ephy-security-popover.c
index b7ca1de..e1003b6 100644
--- a/lib/widgets/ephy-security-popover.c
+++ b/lib/widgets/ephy-security-popover.c
@@ -332,8 +332,7 @@ ephy_security_popover_init (EphySecurityPopover *popover)
 
   popover->security_label = gtk_label_new (NULL);
   gtk_label_set_line_wrap (GTK_LABEL (popover->security_label), TRUE);
-  /* We must use deprecated GtkMisc, not halign, as GTK_ALIGN_START fails for labels with line wrap. */
-  gtk_misc_set_alignment (GTK_MISC (popover->security_label), 0.0, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (popover->security_label), 0.0);
 
   gtk_grid_attach (GTK_GRID (popover->grid), popover->lock_image, 0, 0, 1, 2);
   gtk_grid_attach (GTK_GRID (popover->grid), popover->host_label, 1, 0, 1, 1);


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