static void gv_rect_tool_deactivate(GvTool *r_tool, GvViewArea *view) { GvRectTool *tool = GV_RECT_TOOL(r_tool); /* Disconnect from layer */ if (tool->layer) gv_rect_tool_set_layer(tool, NULL); /* Call the parent class func */ GV_TOOL_DEACTIVATE(tool, view); }
static void gv_rotate_tool_deactivate(GvTool *r_tool, GvViewArea *view) { GvRotateTool *tool = GV_ROTATE_TOOL(r_tool); /* terminate any active modes */ gv_rotate_tool_terminate( tool ); /* Disconnect from layer */ if (tool->layer) { gv_rotate_tool_set_layer(tool, NULL); } /* Call the parent class func */ GV_TOOL_DEACTIVATE(tool, view); }