[gedit] close confirmation dialog: fix labels alignment



commit 116b29827de251bde31d3f051a2f4342add5fdc7
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Fri Jul 19 18:29:08 2013 +0200

    close confirmation dialog: fix labels alignment

 gedit/gedit-close-confirmation-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c
index d96e0d3..8a32b9c 100644
--- a/gedit/gedit-close-confirmation-dialog.c
+++ b/gedit/gedit-close-confirmation-dialog.c
@@ -470,6 +470,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
        gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE);
        gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
        gtk_widget_set_halign (primary_label, GTK_ALIGN_START);
+       gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5);
        gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
        gtk_widget_set_can_focus (primary_label, FALSE);
 
@@ -508,6 +509,7 @@ build_single_doc_dialog (GeditCloseConfirmationDialog *dlg)
        g_free (str);
        gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
        gtk_widget_set_halign (secondary_label, GTK_ALIGN_START);
+       gtk_misc_set_alignment (GTK_MISC (secondary_label), 0, 0.5);
        gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
        gtk_widget_set_can_focus (secondary_label, FALSE);
 
@@ -659,8 +661,10 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
        primary_label = gtk_label_new (NULL);
        gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE);
        gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
+       gtk_misc_set_alignment (GTK_MISC (primary_label), 0, 0.5);
        gtk_widget_set_halign (primary_label, GTK_ALIGN_START);
        gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
+       gtk_widget_set_can_focus (primary_label, FALSE);
 
        if (priv->disable_save_to_disk)
        {
@@ -729,6 +733,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
        gtk_box_pack_start (GTK_BOX (vbox2), secondary_label, FALSE, FALSE, 0);
        gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
        gtk_widget_set_halign (secondary_label, GTK_ALIGN_START);
+       gtk_misc_set_alignment (GTK_MISC (secondary_label), 0, 0.5);
        gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
 
        gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), treeview);


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