diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 04:02:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-11-10 06:33:20 +0800 |
commit | 4a929caada81820d7499b09875870b84e9900912 (patch) | |
tree | f68e00a2c0e5c24d00ae0ec32c11570383a480e7 /composer | |
parent | 3d7cfbbd2f67e40fea1a5c231e8fc7d6c28f2a01 (diff) | |
download | gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.gz gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.zst gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.zip |
Pass an EAlertSink to e_alert_sink_submit_alert().
Passing a random GtkWidget and then searching its ancestors for an
EAlertSink turned out to be not as useful as I thought. Most of the
time we know about and have access to the widget that implements
EAlertSink, so just pass it directly as an EAlertSink.
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-composer-actions.c | 4 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c index 5e57e6df2f..3b2aabfefc 100644 --- a/composer/e-composer-actions.c +++ b/composer/e-composer-actions.c @@ -131,7 +131,7 @@ action_save_cb (GtkAction *action, return; } else { e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), E_ALERT_NO_SAVE_FILE, filename, g_strerror (errno_saved), NULL); return; @@ -141,7 +141,7 @@ action_save_cb (GtkAction *action, if (!gtkhtml_editor_save (editor, filename, TRUE, &error)) { e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), E_ALERT_NO_SAVE_FILE, filename, error->message, NULL); g_error_free (error); diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 4edaeea610..2bca57d3fd 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3516,7 +3516,7 @@ msg_composer_send_cb (EMsgComposer *composer, g_warn_if_fail (message == NULL); async_context_free (context); e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), "mail-composer:no-build-message", error->message, NULL); g_error_free (error); @@ -3600,7 +3600,7 @@ msg_composer_save_to_drafts_cb (EMsgComposer *composer, g_warn_if_fail (message == NULL); async_context_free (context); e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), "mail-composer:no-build-message", error->message, NULL); g_error_free (error); @@ -3676,7 +3676,7 @@ msg_composer_save_to_outbox_cb (EMsgComposer *composer, g_warn_if_fail (message == NULL); async_context_free (context); e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), "mail-composer:no-build-message", error->message, NULL); g_error_free (error); @@ -3759,7 +3759,7 @@ msg_composer_print_cb (EMsgComposer *composer, g_warn_if_fail (message == NULL); async_context_free (context); e_alert_submit ( - GTK_WIDGET (composer), + E_ALERT_SINK (composer), "mail-composer:no-build-message", error->message, NULL); g_error_free (error); |