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-folder.c | |
parent | 19414d4335bf0b3e2a07435d967c4756540c8aaa (diff) | |
download | gsoc2013-evolution-b0978f82a3a5f2869bab4cfb1b5036bc3cc8f3e0.tar.gz 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-folder.c')
-rw-r--r-- | filter/filter-folder.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/filter/filter-folder.c b/filter/filter-folder.c index 7a77a0ee98..a0f43e83d6 100644 --- a/filter/filter-folder.c +++ b/filter/filter-folder.c @@ -26,8 +26,6 @@ #endif #include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-dialog.h> -#include <libgnomeui/gnome-dialog-util.h> #include "filter-folder.h" #include "shell/evolution-folder-selector-button.h" @@ -140,15 +138,20 @@ static gboolean validate (FilterElement *fe) { FilterFolder *ff = (FilterFolder *) fe; + GtkWidget *dialog; if (ff->uri && *ff->uri) { return TRUE; } else { - 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 specify a folder.")); - dialog = gnome_ok_dialog (_("You must specify a folder.\n")); - - gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); + gtk_dialog_run ((GtkDialog *) dialog); return FALSE; } |