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-folder.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-folder.c')
-rw-r--r-- | filter/filter-folder.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/filter/filter-folder.c b/filter/filter-folder.c index a2489e030b..95e85efa32 100644 --- a/filter/filter-folder.c +++ b/filter/filter-folder.c @@ -34,6 +34,7 @@ #include "mail/em-folder-selection-button.h" #include "mail/mail-component.h" #include "e-util/e-sexp.h" +#include "widgets/misc/e-error.h" #define d(x) @@ -139,7 +140,6 @@ static gboolean validate (FilterElement *fe) { FilterFolder *ff = (FilterFolder *) fe; - GtkWidget *dialog; if (ff->uri && *ff->uri) { return TRUE; @@ -148,14 +148,8 @@ 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 specify a folder.")); + e_error_run(NULL, "filter:no-folder", NULL); - gtk_dialog_set_has_separator ((GtkDialog *) dialog, FALSE); - gtk_dialog_run ((GtkDialog *) dialog); - gtk_widget_destroy (dialog); - return FALSE; } } |