From 0e4c54eddced72c9639001849148fe1813c5dc4e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 29 Sep 2010 21:11:44 -0400 Subject: Messin around with EAlerts. Trying out a new interface called EAlertSink. The idea is to centralize how errors are shown to the user. A GtkWindow subclass would implement the EAlertSink interface, which consists of a single method: void (*submit_alert) (EAlertSink *alert_sink, EAlert *alert); The subclass has complete control over what to do with the EAlert, although I imagine we'll wind up implementing various alert-handling policies as standalone widgets such as EAlertDialog. I'd like to try an EAlertInfoBar. Code that would otherwise display an error dialog itself would instead pass the EAlert to an appropriate EAlertSink and be done with it. Nothing is final yet. Still hacking on EAlert trying to find an API that feels right for these use cases. --- doc/reference/shell/eshell-sections.txt | 6 ----- doc/reference/shell/tmpl/e-alert.sgml | 42 ----------------------------- doc/reference/shell/tmpl/eshell-unused.sgml | 36 +++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 48 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/shell/eshell-sections.txt b/doc/reference/shell/eshell-sections.txt index d8b8a5cbd5..3dc6eb1bc4 100644 --- a/doc/reference/shell/eshell-sections.txt +++ b/doc/reference/shell/eshell-sections.txt @@ -511,12 +511,6 @@ EActivityProxyPrivate
e-alert User Alert Handling -E_ALERT_INFO -E_ALERT_INFO_PRIMARY -E_ALERT_WARNING -E_ALERT_WARNING_PRIMARY -E_ALERT_ERROR -E_ALERT_ERROR_PRIMARY E_ALERT_ASK_FILE_EXISTS_OVERWRITE E_ALERT_NO_SAVE_FILE E_ALERT_NO_LOAD_FILE diff --git a/doc/reference/shell/tmpl/e-alert.sgml b/doc/reference/shell/tmpl/e-alert.sgml index 3666408f7b..46df813c66 100644 --- a/doc/reference/shell/tmpl/e-alert.sgml +++ b/doc/reference/shell/tmpl/e-alert.sgml @@ -20,48 +20,6 @@ User Alert Handling - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/doc/reference/shell/tmpl/eshell-unused.sgml b/doc/reference/shell/tmpl/eshell-unused.sgml index 59aed5d191..1488652840 100644 --- a/doc/reference/shell/tmpl/eshell-unused.sgml +++ b/doc/reference/shell/tmpl/eshell-unused.sgml @@ -88,6 +88,42 @@ e-shell-window.sgml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit