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:
@ -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)
|
||||
|
Reference in New Issue
Block a user