diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-03-25 04:47:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-03-25 04:50:19 +0800 |
commit | a09a95559ef640f23da644aef845607774c79f38 (patch) | |
tree | a1409cab397c54b6e8581178dfcb9b5cd01379f8 /plugins/attachment-reminder/attachment-reminder.c | |
parent | d5d651cf7885a2d61cb542a990f00489537224c2 (diff) | |
download | gsoc2013-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 'plugins/attachment-reminder/attachment-reminder.c')
-rw-r--r-- | plugins/attachment-reminder/attachment-reminder.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c index 723e8cfe5d..113424bd78 100644 --- a/plugins/attachment-reminder/attachment-reminder.c +++ b/plugins/attachment-reminder/attachment-reminder.c @@ -105,26 +105,29 @@ org_gnome_evolution_attachment_reminder (EPlugin *ep, EMEventTargetComposer *t) static gboolean ask_for_missing_attachment (EPlugin *ep, GtkWindow *window) { - GtkWidget *check = NULL; - GtkDialog *dialog = NULL; - GtkWidget *content_area; + GtkWidget *check; + GtkWidget *dialog; + GtkWidget *container; gint response; - dialog = (GtkDialog*) e_alert_dialog_new_for_args ( - window, "org.gnome.evolution.plugins.attachment_reminder:attachment-reminder", NULL); + dialog = e_alert_dialog_new_for_args ( + window, "org.gnome.evolution.plugins.attachment_reminder:" + "attachment-reminder", NULL); + + container = e_alert_dialog_get_content_area (E_ALERT_DIALOG (dialog)); /*Check buttons*/ - check = gtk_check_button_new_with_mnemonic (_("_Do not show this message again.")); - content_area = gtk_dialog_get_content_area (dialog); - gtk_box_pack_start (GTK_BOX (content_area), check, FALSE, FALSE, 0); + check = gtk_check_button_new_with_mnemonic ( + _("_Do not show this message again.")); + gtk_box_pack_start (GTK_BOX (container), check, FALSE, FALSE, 0); gtk_widget_show (check); - response = gtk_dialog_run ((GtkDialog *) dialog); + response = gtk_dialog_run (GTK_DIALOG (dialog)); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check))) e_plugin_enable (ep, FALSE); - gtk_widget_destroy ((GtkWidget *)dialog); + gtk_widget_destroy (dialog); if (response == GTK_RESPONSE_OK) gtk_action_activate (E_COMPOSER_ACTION_ATTACH (window)); |