Give an error dialog if the users clicks on OK button when the MIME type
2003-06-02 Balamurali Viswanathan <balamurali.viswanathan@wipro.com> * mime-edit-dialog.c: (validate_data): Give an error dialog if the users clicks on OK button when the MIME type is not entered Fixes bug #113963
This commit is contained in:
parent
1a7b7bf1d6
commit
8696d98d2f
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-06-02 Balamurali Viswanathan <balamurali.viswanathan@wipro.com>
|
||||
|
||||
* mime-edit-dialog.c: (validate_data): Give an error dialog if the
|
||||
users clicks on OK button when the MIME type is not entered
|
||||
Fixes bug #113963
|
||||
|
||||
2003-05-07 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* Release 2.3.1
|
||||
|
|
|
@ -861,6 +861,13 @@ validate_data (MimeEditDialog *dialog)
|
|||
GTK_BUTTONS_OK_CANCEL,
|
||||
_("A MIME type with that name already exists, overwrite ?."));
|
||||
}
|
||||
} else {
|
||||
err_dialog = gtk_message_dialog_new (
|
||||
GTK_WINDOW (dialog->p->dialog_win),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_CANCEL,
|
||||
_("Please enter a valid MIME type. It should be of the form "
|
||||
"class/type and may not contain any spaces."));
|
||||
}
|
||||
|
||||
if (err_dialog) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue