[Xfce4-commits] [xfce/libxfce4ui] 01/02: Improve layout of labels in xfce dialogs

noreply at xfce.org noreply at xfce.org
Fri Nov 25 23:44:20 CET 2016


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/libxfce4ui.

commit 374e0cbdf394024cf896e489a9be261315dbff37
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Nov 25 22:52:15 2016 +0100

    Improve layout of labels in xfce dialogs
    
    Now text is left-aligned again in the labels (as was the case in Gtk2)
    and the vertical alignment of the labels is centered against the icon
    as well as the whole dialog.
---
 libxfce4ui/xfce-dialogs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libxfce4ui/xfce-dialogs.c b/libxfce4ui/xfce-dialogs.c
index dd0c905..f3ee130 100644
--- a/libxfce4ui/xfce-dialogs.c
+++ b/libxfce4ui/xfce-dialogs.c
@@ -585,6 +585,8 @@ xfce_message_dialog_new_valist (GtkWindow   *parent,
       gchar *markedup_text = g_strdup_printf ("<span weight='bold' size='large'>%s</span>", primary_text);
 
       gtk_label_set_markup (GTK_LABEL (primary_label), markedup_text);
+      gtk_label_set_xalign (GTK_LABEL (primary_label), 0);
+      gtk_widget_set_vexpand (GTK_WIDGET (primary_label), TRUE);
 
       gtk_container_add (GTK_CONTAINER (label_box), primary_label);
       gtk_widget_show (primary_label);
@@ -597,6 +599,8 @@ xfce_message_dialog_new_valist (GtkWindow   *parent,
       /* Add the secondary text, no special formatting done */
       GtkWidget *secondary_label = gtk_label_new (secondary_text);
       gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
+      gtk_label_set_xalign (GTK_LABEL (secondary_label), 0);
+      gtk_widget_set_vexpand (GTK_WIDGET (secondary_label), TRUE);
 
       gtk_container_add (GTK_CONTAINER (label_box), secondary_label);
       gtk_widget_show (secondary_label);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list