summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Wehner <martin.wehner@gmail.com>2006-01-26 22:20:59 +0000
committerMartin Wehner <mwehner@src.gnome.org>2006-01-26 22:20:59 +0000
commit819c4d0c39ce3c4b390174080bbd93cd5a4d7262 (patch)
treeaf370b8ad59ede12721bb84cd1c748d9a2b2b7d4 /src
parent63b8582c8e252df6428be73c56244b3067c000fd (diff)
downloadnautilus-819c4d0c39ce3c4b390174080bbd93cd5a4d7262.tar.gz
HIGify the icon in the delete from trash dialog. Patch from Luca Ferretti
2006-01-26 Martin Wehner <martin.wehner@gmail.com> * src/file-manager/fm-directory-view.c: (confirm_delete_from_trash): HIGify the icon in the delete from trash dialog. Patch from Luca Ferretti <elle.uca@libero.it>
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-directory-view.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 0baef3380..08b8e6132 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -3778,10 +3778,14 @@ confirm_delete_from_trash (FMDirectoryView *view, GList *uris)
uri_count);
}
- dialog = eel_show_yes_no_dialog (
- prompt, _("If you delete an item, it will be permanently lost."),
- GTK_STOCK_DELETE, GTK_STOCK_CANCEL,
- fm_directory_view_get_containing_window (view));
+ dialog = GTK_DIALOG (eel_alert_dialog_new(fm_directory_view_get_containing_window (view),
+ 0, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE,
+ prompt,
+ _("If you delete an item, it will be permanently lost.")));
+ gtk_dialog_add_button (dialog, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ gtk_dialog_add_button (dialog, GTK_STOCK_DELETE, GTK_RESPONSE_YES);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
g_free (prompt);