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 /calendar | |
parent | 3d7cfbbd2f67e40fea1a5c231e8fc7d6c28f2a01 (diff) | |
download | gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.gz gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.bz2 gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.lz gsoc2013-evolution-4a929caada81820d7499b09875870b84e9900912.tar.xz 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 'calendar')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index eb908d1e33..af5b23d384 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -834,7 +834,7 @@ action_save_cb (GtkAction *action, if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) { e_alert_submit ( - GTK_WIDGET (editor), + E_ALERT_SINK (editor), "calendar:prompt-read-only-cal-editor", e_source_peek_name ( e_cal_get_source (priv->client)), @@ -1881,7 +1881,7 @@ prompt_and_save_changes (CompEditor *editor, gboolean send) case GTK_RESPONSE_YES: /* Save */ if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) { e_alert_submit ( - GTK_WIDGET (editor), + E_ALERT_SINK (editor), "calendar:prompt-read-only-cal-editor", e_source_peek_name ( e_cal_get_source (priv->client)), |