aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-01 04:02:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-11-01 10:54:30 +0800
commit82925c6be94e9e48e4ef521a88a9feec24cf9eef (patch)
tree715d8578cd7b94eda1e7e0ade89057ea4fac5349 /composer/e-msg-composer.c
parentcce2026f452ec3171a2211fb83651c90e71182a2 (diff)
downloadgsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.tar.gz
gsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.tar.zst
gsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.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/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 4 insertions, 4 deletions
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);