summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalamurali Viswanathan <balamurali.viswanathan@wipro.com>2003-06-02 12:54:18 +0000
committerBalamurali Viswanathan <bviswa@src.gnome.org>2003-06-02 12:54:18 +0000
commit8696d98d2f8aad98e3f38d4eb1a0106d0a2f7355 (patch)
treea3ce12bad49be559558aefd06d2e46a2caad15ef
parent1a7b7bf1d6e18dda79c3d78521398ed23496c32e (diff)
downloadgnome-control-center-8696d98d2f8aad98e3f38d4eb1a0106d0a2f7355.tar.gz
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
-rw-r--r--capplets/file-types/ChangeLog6
-rw-r--r--capplets/file-types/mime-edit-dialog.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/capplets/file-types/ChangeLog b/capplets/file-types/ChangeLog
index 4584dedb5..99199c413 100644
--- a/capplets/file-types/ChangeLog
+++ b/capplets/file-types/ChangeLog
@@ -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
diff --git a/capplets/file-types/mime-edit-dialog.c b/capplets/file-types/mime-edit-dialog.c
index c3c89cce4..65bcbbe97 100644
--- a/capplets/file-types/mime-edit-dialog.c
+++ b/capplets/file-types/mime-edit-dialog.c
@@ -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) {