From d1551390ffa5d2b4b22f3cf085f30676885e8f0d Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 18 May 2004 04:44:13 +0000 Subject: load the tag if present. (ee_response): handle the help response 2004-05-18 Not Zed * e-error.c (ee_load): load the tag if present. (ee_response): handle the help response and swallow the signal. (e_error_newv): setup help button if we have a help uri. svn path=/trunk/; revision=25945 --- widgets/misc/ChangeLog | 6 ++++++ widgets/misc/e-error.c | 52 +++++++++++++++++++++++++++++++++++++------------- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 2fa8b0fbc8..d2d8abac2b 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,9 @@ +2004-05-18 Not Zed + + * e-error.c (ee_load): load the tag if present. + (ee_response): handle the help response and swallow the signal. + (e_error_newv): setup help button if we have a help uri. + 2004-05-17 Jeffrey Stedfast * e-url-entry.c (init): Use E_ICON_SIZE_BUTTON for the icon size diff --git a/widgets/misc/e-error.c b/widgets/misc/e-error.c index 0d18da6a7b..2a2fd7426b 100644 --- a/widgets/misc/e-error.c +++ b/widgets/misc/e-error.c @@ -36,6 +36,7 @@ #include #include +#include #include "e-error.h" @@ -56,6 +57,7 @@ struct _e_error { char *title; char *primary; char *secondary; + char *help_uri; struct _e_error_button *buttons; }; @@ -73,10 +75,10 @@ static struct _e_error_button default_ok_button = { }; static struct _e_error default_errors[] = { - { GTK_DIALOG_MODAL, "error", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", "{1}", &default_ok_button }, - { GTK_DIALOG_MODAL, "error-primary", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", NULL, &default_ok_button }, - { GTK_DIALOG_MODAL, "warning", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", "{1}", &default_ok_button }, - { GTK_DIALOG_MODAL, "warning-primary", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", NULL, &default_ok_button }, + { GTK_DIALOG_MODAL, "error", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", "{1}", NULL, &default_ok_button }, + { GTK_DIALOG_MODAL, "error-primary", 3, GTK_RESPONSE_OK, N_("Evolution Error"), "{0}", NULL, NULL, &default_ok_button }, + { GTK_DIALOG_MODAL, "warning", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", "{1}", NULL, &default_ok_button }, + { GTK_DIALOG_MODAL, "warning-primary", 1, GTK_RESPONSE_OK, N_("Evolution Warning"), "{0}", NULL, NULL, &default_ok_button }, }; /* ********************************************************************** */ @@ -137,18 +139,16 @@ map_type(const char *name) XML format: - <_title>Window Title? - <_primary>Primary error text.? - <_secondary>Secondary error text.? -