app: rename GimpTool::get_undo_desc() and ::get_redo_desc()

to ::can_undo() and ::can_redo(). They still return description
strings and the new naming is slightly off :) but get_undo_desc() will
be needed for something else soon, and half of the time the functions
are indeed used to check whether there are undo/redo staps at all.
This commit is contained in:
Michael Natterer
2017-07-04 18:48:03 +02:00
parent c734f3a96b
commit 54683840e3
10 changed files with 78 additions and 80 deletions

View File

@ -305,10 +305,8 @@ edit_actions_update (GimpActionGroup *group,
if (display)
{
tool_undo = tool_manager_get_undo_desc_active (image->gimp,
display);
tool_redo = tool_manager_get_redo_desc_active (image->gimp,
display);
tool_undo = tool_manager_can_undo_active (image->gimp, display);
tool_redo = tool_manager_can_redo_active (image->gimp, display);
}
if (tool_undo)