From 82925c6be94e9e48e4ef521a88a9feec24cf9eef Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 31 Oct 2010 16:02:30 -0400 Subject: 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. --- composer/e-composer-actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'composer/e-composer-actions.c') 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); -- cgit v1.2.3