use GTK_STOCK_SAVE as icon for the message dialog.

2007-02-16  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c: use GTK_STOCK_SAVE as icon
	for the message dialog.

	* app/actions/data-commands.c (data_delete_cmd_callback): improved
	delete dialog.


svn path=/trunk/; revision=21928
This commit is contained in:
Sven Neumann 2007-02-16 12:59:10 +00:00 committed by Sven Neumann
parent d59ce95379
commit 207d8d1ee1
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-02-16 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-close.c: use GTK_STOCK_SAVE as icon
for the message dialog.
* app/actions/data-commands.c (data_delete_cmd_callback): improved
delete dialog.
2007-02-16 Sven Neumann <sven@gimp.org> 2007-02-16 Sven Neumann <sven@gimp.org>
* libgimp/gimp.c: let gimp_gamma() return 2.2 and document the * libgimp/gimp.c: let gimp_gamma() return 2.2 and document the

View File

@ -206,7 +206,8 @@ data_delete_cmd_callback (GtkAction *action,
GimpContext *context; GimpContext *context;
GimpData *data; GimpData *data;
context = gimp_container_view_get_context (GIMP_CONTAINER_EDITOR (view)->view); context =
gimp_container_view_get_context (GIMP_CONTAINER_EDITOR (view)->view);
data = (GimpData *) data = (GimpData *)
gimp_context_get_by_type (context, gimp_context_get_by_type (context,
@ -246,9 +247,13 @@ data_delete_cmd_callback (GtkAction *action,
delete_data); delete_data);
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box, gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Are you sure you want to delete " _("Delete '%s'?"),
"'%s' from the list and from disk?"),
GIMP_OBJECT (data)->name); GIMP_OBJECT (data)->name);
gimp_message_box_set_text(GIMP_MESSAGE_DIALOG (dialog)->box,
_("Are you sure you want to remove '%s' "
"from the list and delete it on disk?"),
GIMP_OBJECT (data)->name);
gtk_widget_show (dialog); gtk_widget_show (dialog);
} }
} }

View File

@ -126,7 +126,7 @@ gimp_display_shell_close_dialog (GimpDisplayShell *shell,
g_free (name); g_free (name);
shell->close_dialog = shell->close_dialog =
dialog = gimp_message_dialog_new (title, GIMP_STOCK_WARNING, dialog = gimp_message_dialog_new (title, GTK_STOCK_SAVE,
GTK_WIDGET (shell), GTK_WIDGET (shell),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
gimp_standard_help_func, NULL, gimp_standard_help_func, NULL,