[gtk+] messagedialog: also set GtkMisc alignment to zero for dialog labels
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] messagedialog: also set GtkMisc alignment to zero for dialog labels
- Date: Wed, 18 Apr 2012 18:45:10 +0000 (UTC)
commit 0fc7c92235fa491e935a49e63c615deb72ce1baa
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 18 14:40:33 2012 -0400
messagedialog: also set GtkMisc alignment to zero for dialog labels
Setting xalign to START is not enough to make them left-aligned in every
case. This fixes a regression introduced in commit
cc0be1f949020de1562534fbc31ddf0af4651fe2
https://bugzilla.gnome.org/show_bug.cgi?id=674286
gtk/gtkmessagedialog.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 3cc8053..e83c36a 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -350,6 +350,9 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
gtk_widget_set_halign (priv->secondary_label, GTK_ALIGN_START);
gtk_widget_set_valign (priv->secondary_label, GTK_ALIGN_START);
+ gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.0);
+ gtk_misc_set_alignment (GTK_MISC (priv->secondary_label), 0.0, 0.0);
+
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
priv->message_area = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]