diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-25 04:47:53 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:47 +0800 |
commit | eccfd921ed7a7017cf3b893c9146c4ee0438d86b (patch) | |
tree | c553f87e1b2e4a1fe22dd2c1f84f7cf577a6c26e /mail/e-mail-reader-utils.c | |
parent | 9539cc3ff38ee6453a017eb06ae64c53402fbe8f (diff) | |
download | gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar.gz gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar.bz2 gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar.lz gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar.xz gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.tar.zst gsoc2013-evolution-eccfd921ed7a7017cf3b893c9146c4ee0438d86b.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.c | 10 |
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)); |