]> spindle.queued.net Git - midori/commitdiff
Make addons delete confirmation dialog more readable
authorPaweł Forysiuk <tuxator@o2.pl>
Sat, 28 Aug 2010 19:50:23 +0000 (21:50 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 29 Aug 2010 21:49:38 +0000 (23:49 +0200)
extensions/addons.c

index 50a0cdf454822fb1e13d4c2ba1d2f65c12e53320..3bd043b0a3bf3386075ae51d15880a0482b17cab 100644 (file)
@@ -224,13 +224,24 @@ midori_addons_button_delete_clicked_cb (GtkWidget* toolitem,
 
         gtk_tree_model_get (model, &iter, 0, &element, -1);
         dialog = gtk_message_dialog_new (
-                GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (addons))),
-                GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
-                GTK_MESSAGE_QUESTION,
-                GTK_BUTTONS_YES_NO,
-                _("Do you really want to remove '%s'?\n\n"
-                  "The file '%s' will be permanently lost.\n"),
-                 element->displayname, element->fullpath);
+            GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (addons))),
+            GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+            GTK_MESSAGE_QUESTION,
+            GTK_BUTTONS_CANCEL,
+            _("Do you want to delete '%s'?"),
+            element->displayname);
+        gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_DELETE, GTK_RESPONSE_YES);
+
+        gtk_window_set_title (GTK_WINDOW (dialog),
+            addons->kind == ADDONS_USER_SCRIPTS
+            ? _("Delete user script")
+            : _("Delete user style"));
+
+        gtk_message_dialog_format_secondary_markup (
+            GTK_MESSAGE_DIALOG (dialog),
+            _("The file <b>%s</b> will be permanently deleted."),
+            element->fullpath);
+
         delete_response = gtk_dialog_run (GTK_DIALOG (dialog));
         gtk_widget_destroy (GTK_WIDGET (dialog));