[Xfce4-commits] [xfce/libxfce4ui] 01/02: Improve vertical alignment of primary and secondary label
noreply at xfce.org
noreply at xfce.org
Sat Nov 26 10:43:52 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 43eb0adda91b3d2142cdd6b9f93a4c4637a781a8
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Nov 26 10:42:33 2016 +0100
Improve vertical alignment of primary and secondary label
---
libxfce4ui/xfce-dialogs.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libxfce4ui/xfce-dialogs.c b/libxfce4ui/xfce-dialogs.c
index c070fb6..42d453b 100644
--- a/libxfce4ui/xfce-dialogs.c
+++ b/libxfce4ui/xfce-dialogs.c
@@ -588,6 +588,7 @@ xfce_message_dialog_new_valist (GtkWindow *parent,
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_widget_set_valign (GTK_WIDGET (primary_label), 1.0);
gtk_container_add (GTK_CONTAINER (label_box), primary_label);
gtk_widget_show (primary_label);
@@ -600,8 +601,9 @@ 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_label_set_xalign (GTK_LABEL (secondary_label), 0.0);
gtk_widget_set_vexpand (GTK_WIDGET (secondary_label), TRUE);
+ gtk_widget_set_valign (GTK_WIDGET (secondary_label), 0.0);
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