Commit 4ac084a6 authored by William Skaggs's avatar William Skaggs

Bill Skaggs <weskaggs@primate.ucdavis.edu>

	* app/actions/file-commands.c: make "Revert" only ask for
	confirmation if image is dirty.  Fixes bug #141971.
parent 63a4a72f
2004-06-23 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/actions/file-commands.c: make "Revert" only ask for
confirmation if image is dirty. Fixes bug #141971.
2004-06-23 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/gui/*.c:
......
......@@ -273,27 +273,32 @@ file_revert_cmd_callback (GtkAction *action,
g_free (basename);
query_box = gimp_query_boolean_box (_("Revert Image"),
gdisp->shell,
gimp_standard_help_func,
GIMP_HELP_FILE_REVERT,
GIMP_STOCK_QUESTION,
text,
GTK_STOCK_YES, GTK_STOCK_NO,
G_OBJECT (gdisp->gimage),
"disconnect",
file_revert_confirm_callback,
gdisp->gimage);
if (gdisp->gimage->dirty)
{
query_box = gimp_query_boolean_box (_("Revert Image"),
gdisp->shell,
gimp_standard_help_func,
GIMP_HELP_FILE_REVERT,
GIMP_STOCK_QUESTION,
text,
GTK_STOCK_YES, GTK_STOCK_NO,
G_OBJECT (gdisp->gimage),
"disconnect",
file_revert_confirm_callback,
gdisp->gimage);
g_object_set_data (G_OBJECT (gdisp->gimage), REVERT_DATA_KEY,
query_box);
gtk_window_set_transient_for (GTK_WINDOW (query_box),
GTK_WINDOW (gdisp->shell));
gtk_widget_show (query_box);
}
else
file_revert_confirm_callback (NULL, TRUE, (gpointer)(gdisp->gimage));
g_free (text);
g_object_set_data (G_OBJECT (gdisp->gimage), REVERT_DATA_KEY,
query_box);
gtk_window_set_transient_for (GTK_WINDOW (query_box),
GTK_WINDOW (gdisp->shell));
gtk_widget_show (query_box);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment