aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-25 04:47:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-25 04:50:19 +0800
commita09a95559ef640f23da644aef845607774c79f38 (patch)
treea1409cab397c54b6e8581178dfcb9b5cd01379f8 /mail/e-mail-reader-utils.c
parentd5d651cf7885a2d61cb542a990f00489537224c2 (diff)
downloadgsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar.gz
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar.bz2
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar.lz
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar.xz
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.tar.zst
gsoc2013-evolution-a09a95559ef640f23da644aef845607774c79f38.zip
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.
Diffstat (limited to 'mail/e-mail-reader-utils.c')
-rw-r--r--mail/e-mail-reader-utils.c10
1 files changed, 3 insertions, 7 deletions
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));