From a09a95559ef640f23da644aef845607774c79f38 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 24 Mar 2011 16:47:53 -0400 Subject: Fix alignment of extra widgets in EAlertDialogs. Add e_alert_dialog_get_content_area(), which returns the GtkVBox containing the primary and secondary labels. Use this instead of gtk_dialog_get_content_area() to maintain the dialog's left margin beneath the image. --- mail/e-mail-reader-utils.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'mail/e-mail-reader-utils.c') diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index a049e6eb84..c7b651b942 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -70,7 +70,7 @@ e_mail_reader_confirm_delete (EMailReader *reader) CamelFolder *folder; CamelStore *parent_store; GtkWidget *check_button; - GtkWidget *content_area; + GtkWidget *container; GtkWidget *dialog; GtkWindow *window; const gchar *label; @@ -104,15 +104,11 @@ e_mail_reader_confirm_delete (EMailReader *reader) window, "mail:ask-delete-vfolder-msg", camel_folder_get_full_name (folder), NULL); - /* XXX e-error should provide a widget layout and API suitable - * for packing additional widgets to the right of the alert - * icon. But for now, screw it. */ + container = e_alert_dialog_get_content_area (E_ALERT_DIALOG (dialog)); label = _("Do not ask me again"); - content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); check_button = gtk_check_button_new_with_label (label); - gtk_box_pack_start ( - GTK_BOX (content_area), check_button, TRUE, TRUE, 6); + gtk_box_pack_start (GTK_BOX (container), check_button, TRUE, TRUE, 6); gtk_widget_show (check_button); response = gtk_dialog_run (GTK_DIALOG (dialog)); -- cgit v1.2.3