diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-08 07:09:45 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-08 07:09:45 +0800 |
commit | 59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a (patch) | |
tree | 722db509bf8b725208a18c548293be703abaaad3 /filter/vfolder-rule.c | |
parent | 0783b601b0f6cc882ca6d4f22a6ac052d3658ba4 (diff) | |
download | gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.gz gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.zst gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.zip |
Use a GtkDialog instead of a GnomeDialog for reporting errors.
2002-11-07 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (validate): Use a GtkDialog instead of a
GnomeDialog for reporting errors.
* rule-editor.c (rule_add): Use a GtkDialog instead of
GnomeDialog.
(rule_edit): Same.
(add_editor_response): Use a GtkMessageDialog for the error
reporting instead of a GnomeDialog.
(edit_editor_response): Same.
* rule-context.c (rule_context_add_rule_gui): Use a GtkDialog
instead of a GnomeDialog.
* filter-rule.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-input.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-folder.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-file.c (validate): Use GtkDialog instead of GnomeDialog
here.
* rule-editor.c: Subclass GtkDialog instead of GnomeDialog.
* filter-datespec.c (validate): Use GtkDialog instead of
GnomeDialog.
(button_clicked): Same.
svn path=/trunk/; revision=18651
Diffstat (limited to 'filter/vfolder-rule.c')
-rw-r--r-- | filter/vfolder-rule.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c index d0bb04ee2c..19de3074f7 100644 --- a/filter/vfolder-rule.c +++ b/filter/vfolder-rule.c @@ -28,8 +28,6 @@ #include <gtk/gtk.h> #include <glade/glade.h> #include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-dialog.h> -#include <libgnomeui/gnome-dialog-util.h> #include "vfolder-context.h" #include "vfolder-rule.h" @@ -202,8 +200,13 @@ validate (FilterRule *fr) g_return_val_if_fail (fr != NULL, FALSE); if (!fr->name || !*fr->name) { - dialog = gnome_ok_dialog (_("You must name this vfolder.")); - gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); + /* FIXME: set a aprent window? */ + dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, + "%s", _("You must name this vfolder.")); + + gtk_dialog_run ((GtkDialog *) dialog); + gtk_widget_destroy (dialog); return 0; } @@ -211,8 +214,13 @@ validate (FilterRule *fr) /* We have to have at least one source set in the "specific" case. Do not translate this string! */ if (fr->source && !strcmp (fr->source, "specific") && VFOLDER_RULE (fr)->sources == NULL) { - dialog = gnome_ok_dialog (_("You need to to specify at least one folder as a source.")); - gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); + /* FIXME: set a parent window? */ + dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, + "%s", _("You need to to specify at least one folder as a source.")); + + gtk_dialog_run ((GtkDialog *) dialog); + gtk_widget_destroy (dialog); return 0; } @@ -372,7 +380,7 @@ select_source_with (GtkWidget *widget, struct _source_data *data) } static void -source_add(GtkWidget *widget, struct _source_data *data) +source_add (GtkWidget *widget, struct _source_data *data) { static const char *allowed_types[] = { "mail/*", NULL }; GNOME_Evolution_Folder *folder; |