Index: file-types//ChangeLog
===================================================================
RCS file: /export/cvs/gnome-2.0/gnome-control-center/capplets/file-types/ChangeLog,v
retrieving revision 1.143
diff -p -u -5 -r1.143 ChangeLog
--- file-types//ChangeLog	2004/02/12 14:22:40	1.143
+++ file-types//ChangeLog	2004/02/13 06:53:24
@@ -1,5 +1,11 @@
+2004-02-13  Kaushal Kumar  <kaushal.kumar@wipro.com>
+
+	* file-types-capplet.c (remove_cb): Added warning dialog to prompt 
+	the user before an entry is deleted permanently.
+	Fix bug #109091.
+
 2004-02-12  Mark McLoughlin  <mark@skynet.ie>
 
 	* file-types-capplet.c: (cb_file_type_dialog_response): Update help
 	link to point to user-guide.xml
 
Index: file-types//file-types-capplet.c
===================================================================
RCS file: /export/cvs/gnome-2.0/gnome-control-center/capplets/file-types/file-types-capplet.c,v
retrieving revision 1.93
diff -p -u -5 -r1.93 file-types-capplet.c
--- file-types//file-types-capplet.c	2004/02/12 14:22:40	1.93
+++ file-types//file-types-capplet.c	2004/02/13 06:53:24
@@ -145,21 +145,35 @@ remove_cb (GtkButton *button, GladeXML *
 	GtkTreeView       *treeview;
 	GtkTreeModel      *model;
 	GtkTreeSelection  *selection;
 	GtkTreeIter        iter;
 	ModelEntry        *entry;
+	GtkWidget         *warning_dialog;
+	gint               response;
 
-	treeview = GTK_TREE_VIEW (WID ("mime_types_tree"));
-	selection = gtk_tree_view_get_selection (treeview);
-	gtk_tree_selection_get_selected (selection, &model, &iter);
+	warning_dialog = gtk_message_dialog_new (
+				GTK_WINDOW (WID("main_dialog")),
+				GTK_DIALOG_DESTROY_WITH_PARENT,
+				GTK_MESSAGE_WARNING,
+				GTK_BUTTONS_OK_CANCEL,
+				_("Are you sure you want to permanently delete this entry?"));
 
-	entry = MODEL_ENTRY_FROM_ITER (&iter);
+	gtk_dialog_set_default_response (GTK_DIALOG (warning_dialog), GTK_RESPONSE_CANCEL);
+	gtk_window_set_resizable (GTK_WINDOW (warning_dialog), FALSE);
+	response = gtk_dialog_run (GTK_DIALOG (warning_dialog));
 
-	model_entry_remove_child (entry->parent, entry, model);
-	model_entry_delete (entry);
+	if (response == GTK_RESPONSE_OK) {
+		treeview = GTK_TREE_VIEW (WID ("mime_types_tree"));
+		selection = gtk_tree_view_get_selection (treeview);
+		gtk_tree_selection_get_selected (selection, &model, &iter);
+		entry = MODEL_ENTRY_FROM_ITER (&iter);
 
-	selection_changed_cb (selection, dialog);
+		model_entry_remove_child (entry->parent, entry, model);
+		model_entry_delete (entry);
+		selection_changed_cb (selection, dialog);
+	}
+	gtk_widget_destroy (warning_dialog);
 }
 
 static void
 cb_file_type_dialog_response (GtkDialog *dialog, gint response_id)
 {
