diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-28 14:38:20 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-28 14:38:20 +0800 |
commit | 6674bdd55b8b29b1bde4b032f6933dfcfb967107 (patch) | |
tree | 34edbe55104d4083ef559df43ff93f8888228d37 /filter/filter-datespec.c | |
parent | 4e99c39bcf70a2b15d4bd6dbb609ef0aba8d9675 (diff) | |
download | gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.gz gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.bz2 gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.lz gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.xz gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.zst gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.zip |
fix a warning.
2004-04-28 Not Zed <NotZed@Ximian.com>
* filter-option.c (filter_option_add): fix a warning.
** Changed error messages to use EError.
svn path=/trunk/; revision=25651
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r-- | filter/filter-datespec.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c index f913b20ed8..6aa0b9cfc6 100644 --- a/filter/filter-datespec.c +++ b/filter/filter-datespec.c @@ -20,7 +20,6 @@ * Boston, MA 02111-1307, USA. */ - #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -36,6 +35,7 @@ #include "filter-datespec.h" #include "e-util/e-sexp.h" +#include "widgets/misc/e-error.h" #define d(x) @@ -173,7 +173,6 @@ static gboolean validate (FilterElement *fe) { FilterDatespec *fds = (FilterDatespec *) fe; - GtkWidget *dialog; gboolean valid; valid = fds->type != FDST_UNKNOWN; @@ -182,13 +181,7 @@ validate (FilterElement *fe) GtkWidget member pointing to the value gotten with ::get_widget() so that we can get the parent window here. */ - dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, - "%s", _("You must choose a date.")); - - gtk_dialog_set_has_separator ((GtkDialog *) dialog, FALSE); - gtk_dialog_run ((GtkDialog *) dialog); - gtk_widget_destroy (dialog); + e_error_run(NULL, "filter:no-date", NULL); } return valid; |