diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-08 05:20:30 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-08 05:20:30 +0800 |
commit | b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0 (patch) | |
tree | e6975a4d32699cffbd2c5c2898b1609c1301c406 /filter/filter-rule.c | |
parent | 19414d4335bf0b3e2a07435d967c4756540c8aaa (diff) | |
download | gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.gz gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.bz2 gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.lz gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.xz gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.zst gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.zip |
Use GtkDialog instead of GnomeDialog here.
2002-11-07 Jeffrey Stedfast <fejj@ximian.com>
* 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=18635
Diffstat (limited to 'filter/filter-rule.c')
-rw-r--r-- | filter/filter-rule.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/filter/filter-rule.c b/filter/filter-rule.c index f1f3f5f3ae..cb4959d2fc 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -29,8 +29,6 @@ #include <gtk/gtk.h> #include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-dialog.h> -#include <libgnomeui/gnome-dialog-util.h> #include "filter-rule.h" #include "filter-context.h" @@ -206,15 +204,20 @@ filter_rule_validate (FilterRule *fr) static int validate (FilterRule *fr) { + GtkWidget *dialog; int valid = TRUE; GList *parts; if (!fr->name || !*fr->name) { - GtkWidget *dialog; + /* FIXME: FilterElement should probably have a + 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 name this filter.")); - dialog = gnome_ok_dialog (_("You must name this filter.")); - - gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); + gtk_dialog_run ((GtkDialog *) dialog); return FALSE; } |